diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-29 16:06:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-29 16:06:54 +0000 |
commit | 716610ae565caed8df725dd26ffbc2000b673fcd (patch) | |
tree | 9af46bd4743c0429f963efa10889a1288775afff /lib/shell | |
parent | db31f2fafb3634364bba91130162bc9c394f8232 (diff) |
get rid of ambiguous parentheses warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/shell')
-rw-r--r-- | lib/shell/filter.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb index c1f4b28a45..2c3ad40a48 100644 --- a/lib/shell/filter.rb +++ b/lib/shell/filter.rb @@ -47,7 +47,7 @@ class Shell #:nodoc: # # Inputs from +source+, which is either a string of a file name or an IO # object. - def < (src) + def <(src) case src when String cat = Cat.new(@shell, src) @@ -65,7 +65,7 @@ class Shell #:nodoc: # # Outputs from +source+, which is either a string of a file name or an IO # object. - def > (to) + def >(to) case to when String dst = @shell.open(to, "w") @@ -87,7 +87,7 @@ class Shell #:nodoc: # # Appends the output to +source+, which is either a string of a file name # or an IO object. - def >> (to) + def >>(to) begin Shell.cd(@shell.pwd).append(to, self) rescue CantApplyMethod @@ -99,7 +99,7 @@ class Shell #:nodoc: # | filter # # Processes a pipeline. - def | (filter) + def |(filter) filter.input = self if active? @shell.process_controller.start_job filter @@ -111,7 +111,7 @@ class Shell #:nodoc: # filter1 + filter2 # # Outputs +filter1+, and then +filter2+ using Join.new - def + (filter) + def +(filter) Join.new(@shell, self, filter) end |