1
0
Fork 0
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:
John Mair 2011-04-24 12:26:08 +12:00
parent d64b0f82cc
commit 113a4b489c

View file

@ -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 }