-
Notifications
You must be signed in to change notification settings - Fork 548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented #respond_to? #99
Conversation
I think the correct way is to override |
You're right. Didnt know about respond_to_missing :) |
@@ -102,6 +102,16 @@ def each(&blk) | |||
@values.each(&blk) | |||
end | |||
|
|||
if RUBY_VERSION < '1.9.2' | |||
def respond_to?(symbol) | |||
@values.has_key(symbol) || super |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀 has_key?
Sorry about the delay here! Left a few notes. Would you mind moving |
On second thought, I went ahead and did it for you to finish it out! I saved your commits, so you will see them on the master branch. Thanks for the submission! If you have any questions, feel free to send an email to support@stripe.com. |
Cool, thanks;) |
This fixes #92 and #55