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:
parent
d331ded410
commit
9a2999982c
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue