Skip to content

Commit ddc32f5

Browse files
committed
Use an anonymous block parameter in Module#delegate
`...` generates an anonymous block, it's basically a shortcut for `*, **, &`. So to look more similar to tools that introspect method signatures, it's best to continue to use an anonymous block.
1 parent c7551d0 commit ddc32f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activesupport/lib/active_support/core_ext/module/delegation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def delegate(*methods, to: nil, prefix: nil, allow_nil: nil, private: nil, as: n
237237
"..."
238238
else
239239
defn = parameters.filter_map { |type, arg| arg if type == :req }
240-
defn << "&block"
240+
defn << "&"
241241
defn.join(", ")
242242
end
243243
else

0 commit comments

Comments
 (0)