A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ruby/spec/commit/aaf998fb8c92c4e63ad423a2e7ca6e6921818c6e below:

Address RuboCop feedback · ruby/spec@aaf998f · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed Original file line number Diff line number Diff line change

@@ -125,7 +125,7 @@ def m(*args, **kwargs)

125 125

end

126 126 127 127

it "works with -> (*args, **kwargs) {}" do

128 -

m = -> (*args, **kwargs) do

128 +

m = -> *args, **kwargs do

129 129

target(*args, **kwargs)

130 130

end

131 131

@@ -261,8 +261,8 @@ def y(args)

261 261

yield(*args)

262 262

end

263 263 264 -

ruby2_keywords def m(*args)

265 -

y(args, &-> (*args, **kwargs) { target(*args, **kwargs) })

264 +

ruby2_keywords def m(*outer_args)

265 +

y(outer_args, &-> *args, **kwargs { target(*args, **kwargs) })

266 266

end

267 267

end

268 268

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4