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 be37ef6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [Unreleased]

- Fix incorrect `super` fallback in `RedBlackTree::DataDelegation#respond_to_missing?`

## [0.1.3] - 2024-10-21

- Make `RedBlackTree#left_most_node` public
Expand Down
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 be37ef6

Please sign in to comment.