Skip to content

Commit 257708c

Browse files
committed
disable Naming/BlockForwarding
ruby 3.3 does not accept this when the block is forwarded inside another block
1 parent 4a9473f commit 257708c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/interactify/dsl/if_klass.rb

+4-2
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,11 @@ def attach_inspect
6262
end
6363
end
6464

65-
def attach_method(name, &block)
65+
# rubocop:disable #Naming/BlockForwarding
66+
def attach_method(name, &)
6667
attach do |klass, _this|
67-
klass.define_method(name, &block)
68+
klass.define_method(name, &)
69+
# rubocop:enable #Naming/BlockForwarding
6870
end
6971
end
7072

0 commit comments

Comments
 (0)