summaryrefslogtreecommitdiff
path: root/lib
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
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')
-rw-r--r--lib/cgi.rb3
-rw-r--r--lib/irb/context.rb4
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 1327b64d34..705b0ccf13 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 f1194f8db9..f4d0d98289 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