Skip to content

Commit

Permalink
fix incorrect super fallback in RedBlackTree::DataDelegation#respond_…
Browse files Browse the repository at this point in the history
…to_missing?
  • Loading branch information
joshuay03 committed Oct 27, 2024
1 parent c0ef585 commit a75beac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/red_black_tree/node/data_delegation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def method_missing method_name, *args, &block
end

def respond_to_missing? method_name, include_private = false
@data.respond_to? method_name, include_private || super
(@data.respond_to? method_name, include_private) || super
end
end
end

0 comments on commit a75beac

Please sign in to comment.