Ignore warnings about argument prefix with operator symbol.
This commit is contained in:
parent
3c77ef9adc
commit
464e55f1d0
@ -16,7 +16,7 @@ class TestIter::YieldBlock < Test::Unit::TestCase
|
|||||||
block.call {}
|
block.call {}
|
||||||
end
|
end
|
||||||
def call_lambda(&block)
|
def call_lambda(&block)
|
||||||
block.call &->{}
|
block.call(&->{})
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -17,9 +17,9 @@ class TestLazyEnumerator < Test::Unit::TestCase
|
|||||||
@enum.each do |v|
|
@enum.each do |v|
|
||||||
@current = v
|
@current = v
|
||||||
if v.is_a? Enumerable
|
if v.is_a? Enumerable
|
||||||
yield *v
|
yield(*v)
|
||||||
else
|
else
|
||||||
yield v
|
yield(v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -2096,7 +2096,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
}
|
}
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2111,7 +2111,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2127,14 +2127,14 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
class NonProc
|
class NonProc
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2144,7 +2144,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2163,7 +2163,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -2182,7 +2182,7 @@ class TestRefinement < Test::Unit::TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
def call
|
def call
|
||||||
ToProc.call &self
|
ToProc.call(&self)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user