Skip to content

Commit

Permalink
Add ruby2_keywords shim to Trestle::Toolbar::Context
Browse files Browse the repository at this point in the history
  • Loading branch information
spohlenz committed Aug 5, 2024
1 parent 78899b4 commit bc599ed
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions lib/trestle/toolbar/context.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ def group
end

private
def respond_to_missing?(name, include_all=false)
builder.respond_to?(name) || super
end
def self.ruby2_keywords(*)
end unless respond_to?(:ruby2_keywords, true)

ruby2_keywords def method_missing(name, *args, &block)
result = builder.send(name, *args, &block)
Expand All @@ -34,6 +33,10 @@ def respond_to_missing?(name, include_all=false)
result
end
end

def respond_to_missing?(name, include_all=false)
builder.respond_to?(name) || super
end
end
end
end

0 comments on commit bc599ed

Please sign in to comment.