diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 02:26:08 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-07-26 02:26:08 +0000 |
| commit | 256252ad894a217257ede63e5f8a779864ca933a (patch) | |
| tree | fa18dbdc23917c331e91fdb7ae9b7f41e91a5867 /lib/irb | |
| parent | f16bd7575f293c34e14cf9e5ce54f034470b2196 (diff) | |
| download | ruby-256252ad894a217257ede63e5f8a779864ca933a.tar.gz ruby-256252ad894a217257ede63e5f8a779864ca933a.tar.xz ruby-256252ad894a217257ede63e5f8a779864ca933a.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@4168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
| -rw-r--r-- | lib/irb/context.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/irb/context.rb b/lib/irb/context.rb index f1194f8db..f4d0d9828 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 |
