diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-10-16 17:47:19 +0000 |
| commit | 9246a73c21dab6031e8036b3ebaa3b943d2119d1 (patch) | |
| tree | a700e3fe92165180b04451746f9c4fda4f038289 /lib/irb | |
| parent | d9a34753f78b8db5115b10bb1df137a16c4c90cf (diff) | |
| download | ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.gz ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.tar.xz ruby-9246a73c21dab6031e8036b3ebaa3b943d2119d1.zip | |
consistent parentheses in assignment RHS.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/irb')
| -rw-r--r-- | lib/irb/cmd/fork.rb | 2 | ||||
| -rw-r--r-- | lib/irb/completion.rb | 8 | ||||
| -rw-r--r-- | lib/irb/workspace.rb | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/lib/irb/cmd/fork.rb b/lib/irb/cmd/fork.rb index 1cc4458b1..30024dc5e 100644 --- a/lib/irb/cmd/fork.rb +++ b/lib/irb/cmd/fork.rb @@ -3,7 +3,7 @@ module IRB module ExtendCommand class Fork<Nop def execute(&block) - pid = send ExtendCommand.irb_original_method_name("fork") + pid = send(ExtendCommand.irb_original_method_name("fork")) unless pid class<<self alias_method :exit, ExtendCommand.irb_original_method_name('exit') diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb index c207cf09e..46e6f24f3 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. diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 3659fa8b5..531995fc4 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -56,7 +56,7 @@ EOF end end if main.empty? - @main = eval "self", @binding + @main = eval("self", @binding) else @main = main[0] IRB.conf[:__MAIN__] = @main |
