mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
fixed the JRuby 1.9 test (using Object.const_defined? instead of just const_defined?)
This commit is contained in:
parent
d64b0f82cc
commit
113a4b489c
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ class Pry
|
|||
end
|
||||
|
||||
# FIXME! Another JRuby hack
|
||||
if const_defined?(:RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
|
||||
if Object.const_defined?(:RUBY_ENGINE) && RUBY_ENGINE =~ /jruby/
|
||||
simple_pager(text)
|
||||
else
|
||||
lesspipe { |less| less.puts text }
|
||||
|
|
Loading…
Reference in a new issue