summaryrefslogtreecommitdiff
path: root/lib/matrix.rb
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 15:23:12 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-29 15:23:12 +0000
commit40c9f1f3288bc25d8c52f544a8b404be07f88f90 (patch)
tree9b0fffe1eff64f871aa152a5bbb4bdf08b668031 /lib/matrix.rb
parent18658d7d2ccaf51d7f018e6e602310be6275608f (diff)
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
Diffstat (limited to 'lib/matrix.rb')
-rw-r--r--lib/matrix.rb6
1 files 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)