From 40c9f1f3288bc25d8c52f544a8b404be07f88f90 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 29 Nov 2016 15:23:12 +0000 Subject: [PATCH] get rid of test failures on CI introduced at r56927 * lib/matrix.rb: now ruby warns ambiguous parentheses after a space in method definitions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/matrix.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matrix.rb b/lib/matrix.rb index fe61b6d120..eaa4bfc6e1 100644 --- a/lib/matrix.rb +++ b/lib/matrix.rb @@ -1118,7 +1118,7 @@ class Matrix # => 67 96 # 48 99 # - def ** (other) + def **(other) case other when Integer x = self @@ -1644,7 +1644,7 @@ class Matrix end end - def / (other) + def /(other) case other when Numeric Scalar.new(@value / other) @@ -1657,7 +1657,7 @@ class Matrix end end - def ** (other) + def **(other) case other when Numeric Scalar.new(@value ** other)