summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 02:26:08 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-26 02:26:08 +0000
commit34ca2ab05891c41e28deecde6a8548127f286525 (patch)
treefa18dbdc23917c331e91fdb7ae9b7f41e91a5867 /lib/irb
parenteb51666a192204ea1689154404d03a03dc5a64de (diff)
* variable.c (rb_mod_const_missing): "const_missing" should not
appear in the caller(); add call frame adjustment. * eval.c (rb_method_missing): simplify call frame adjustment. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/context.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index f1194f8..f4d0d98 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -58,8 +58,8 @@ module IRB
case input_method
when nil
- if (use_readline.nil? && IRB.conf[:PROMPT_MODE] != :INF_RUBY && STDIN.tty? ||
- use_readline?)
+ if (defined? (ReadlineInputMethod) &&
+ (use_readline? || IRB.conf[:PROMPT_MODE] != :INF_RUBY && STDIN.tty?))
@io = ReadlineInputMethod.new
else
@io = StdioInputMethod.new