1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
ruby -e 'puts Object.constants.grep( /RUBY/ ).map{ |c| "##{[c, Object.const_get(c)].inspect}"}'
#[:RUBY_VERSION, "1.9.1"]
#[:RUBY_RELEASE_DATE, "2009-05-12"]
#[:RUBY_PLATFORM, "i686-linux"]
#[:RUBY_PATCHLEVEL, 129]
#[:RUBY_REVISION, 23412]
#[:RUBY_DESCRIPTION, "ruby 1.9.1p129 (2009-05-12 revision 23412) [i686-linux]"]
#[:RUBY_COPYRIGHT, "ruby - Copyright (C) 1993-2009 Yukihiro Matsumoto"]
#[:RUBY_ENGINE, "ruby"]

# ------------------------------------------------------------------------------

jruby -e 'puts Object.constants.grep( /RUBY/ ).map{ |c| "##{[c, Object.const_get(c)].inspect}"}'
#["RUBY_ENGINE", "jruby"]
#["RUBY_PLATFORM", "java"]
#["RUBY_PATCHLEVEL", 287]
#["JRUBY_VERSION", "1.4.0dev"]
#["RUBY_VERSION", "1.8.6"]
#["RUBY_RELEASE_DATE", "2009-06-24"]