summaryrefslogtreecommitdiff
path: root/lib/irb/completion.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-16 17:47:19 +0000
commit8ef5da3be1577bb5ae7f55b60cf9fedb10ecb85e (patch)
treea700e3fe92165180b04451746f9c4fda4f038289 /lib/irb/completion.rb
parent3ec0bc3828794a6ef6293b53b403af8bc2362934 (diff)
consistent parentheses in assignment RHS.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb/completion.rb')
-rw-r--r--lib/irb/completion.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index c207cf09ef..46e6f24f30 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -112,7 +112,7 @@ module IRB
select_message(receiver, message, candidates)
when /^(\$[^.]*)$/
- candidates = global_variables.grep Regexp.new(Regexp.quote($1))
+ candidates = global_variables.grep(Regexp.new(Regexp.quote($1)))
# when /^(\$?(\.?[^.]+)+)\.([^.]*)$/
when /^((\.?[^.]+)+)\.([^.]*)$/
@@ -120,9 +120,9 @@ module IRB
receiver = $1
message = Regexp.quote($3)
- gv = eval "global_variables", bind
- lv = eval "local_variables", bind
- cv = eval "self.class.constants", bind
+ gv = eval("global_variables", bind)
+ lv = eval("local_variables", bind)
+ cv = eval("self.class.constants", bind)
if (gv | lv | cv).include?(receiver)
# foo.func and foo is local var.