1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

BaseHelpers: add #jruby_19? method

And remove some naive comments.
This commit is contained in:
Kyrylo Silin 2013-02-04 17:57:00 +02:00
parent d331ded410
commit 9a2999982c

View file

@ -83,12 +83,15 @@ class Pry
defined?(Win32::Console) || ENV['ANSICON']
end
# are we on Jruby platform?
def jruby?
RbConfig::CONFIG['ruby_install_name'] == 'jruby'
end
# are we on rbx platform?
def jruby_19?
RbConfig::CONFIG['ruby_install_name'] == 'jruby' &&
RbConfig::CONFIG['ruby_version'] == '1.9'
end
def rbx?
RbConfig::CONFIG['ruby_install_name'] == 'rbx'
end