From 256252ad894a217257ede63e5f8a779864ca933a Mon Sep 17 00:00:00 2001 From: matz Date: Sat, 26 Jul 2003 02:26:08 +0000 Subject: * 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 --- lib/cgi.rb | 3 +++ lib/irb/context.rb | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cgi.rb b/lib/cgi.rb index 1327b64d3..705b0ccf1 100644 --- a/lib/cgi.rb +++ b/lib/cgi.rb @@ -959,6 +959,9 @@ convert string charset, and set language to "ja". def to_a @params end + def to_ary # to be rhs of multiple assignment + @params + end end def [](key) 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 -- cgit