Skip to content

Commit

Permalink
disable Naming/BlockForwarding
Browse files Browse the repository at this point in the history
ruby 3.3 does not accept this when the block is forwarded inside another block
  • Loading branch information
markburns committed Dec 29, 2023
1 parent 4a9473f commit de28067
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/interactify/dsl/if_klass.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ def attach_inspect
end
end

# rubocop: disable Naming/BlockForwarding
def attach_method(name, &block)
attach do |klass, _this|
klass.define_method(name, &block)
end
end
# rubocop: enable Naming/BlockForwarding

def attach
this = if_builder
Expand Down

0 comments on commit de28067

Please sign in to comment.