This content describes the constants that have been added in MacRuby.
Original Constants
Kernel::RUBY_ARCH
CPU name of the architecture which MacRuby is ran.
1 2 |
|
Kernel::MACRUBY_VERSION
MacRuby version.
1 2 |
|
Following method may check whether running your program on MacRuby.
1 2 3 4 5 6 7 8 |
|
Kernel::MACRUBY_REVISION
Git SHA1 Hash which indicates a last commit. (Older MacRuby shows a revision number of SVN)
1 2 |
|
Dir::NS_TMPDIR
Path of temporary directory.
1 2 |
|