Merge pull request #5844 from jbampton/ruby-remove-parenthesis

ruby: remove unneeded parenthesis from methods
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-11-01 00:05:38 +09:00
committed by GitHub
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
NUM = 300
SIZE = 10000
def test_lists()
def test_lists
# create a list of integers (Li1) from 1 to SIZE
li1 = (1..SIZE).to_a
# copy the list to li2 (not by individual items)
+1 -1
View File
@@ -75,7 +75,7 @@ module MRuby
def git?() return !!@repo; end
def gemname() return File.basename(@gemdir); end
def hash()
def hash
return [@gemdir, @repo, @branch, @commit, @canonical, @path].hash
end
+2 -2
View File
@@ -374,7 +374,7 @@ assert('BS Block [ruby-dev:31147]') do
end
assert('BS Block [ruby-dev:31160]') do
def m()
def m
yield
end
assert_nil m {|(v,(*))|}
@@ -389,7 +389,7 @@ assert('BS Block [issue #750]') do
end
assert('BS Block 31') do
def m()
def m
yield
end
assert_nil m {|((*))|}
+2 -2
View File
@@ -729,14 +729,14 @@ end
assert('Issue 1467') do
module M1
def initialize()
def initialize
super()
end
end
class C1
include M1
def initialize()
def initialize
super()
end
end