From 716610ae565caed8df725dd26ffbc2000b673fcd Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 29 Nov 2016 16:06:54 +0000 Subject: get rid of ambiguous parentheses warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56937 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/matrix/lup_decomposition.rb | 2 +- lib/shell/filter.rb | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb index 9c1998fd36..c001770a12 100644 --- a/lib/matrix/lup_decomposition.rb +++ b/lib/matrix/lup_decomposition.rb @@ -64,7 +64,7 @@ class Matrix # Returns +true+ if +U+, and hence +A+, is singular. - def singular? () + def singular? @column_count.times do |j| if (@lu[j][j] == 0) return true 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 -- cgit v1.2.3