forked from Yelp/yelp-ruby
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix BurstStruct's respond_to? for string keys.
The custom struct implementation handles string/symbol keys correctly in method_missing, but not in respond_to?. This change reuses the (already factored out) code used by method_missing to implement a has_key? method, and uses that method in respond_to?.
- Loading branch information
Showing
2 changed files
with
28 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters