Skip to content
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

fix undefined local variable error. #119

Merged
merged 1 commit into from
Feb 12, 2017

Conversation

hirakiuc
Copy link
Owner

Fix undefined local variable error.

This pull request fixes #109.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.07%) to 94.888% when pulling 947175f on fix_undefined_local_variable_error into 80587ee on master.

@@ -17,7 +17,7 @@ def method_missing(method, *args)
end

def respond_to_missing?(symbol, include_all)
enum.respond_to_missing?(symbol, include_all) || super
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed two problems.

  1. enum is not defined in this scope. 😢
  2. I think, this respond_to_missing? should not depend on super because I want to forward the methods to the enumerator, not super.

@hirakiuc hirakiuc added the bug label Feb 12, 2017
@hirakiuc
Copy link
Owner Author

Looks good to me 👍

@hirakiuc hirakiuc merged commit cdfc1f5 into master Feb 12, 2017
@hirakiuc hirakiuc deleted the fix_undefined_local_variable_error branch February 12, 2017 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

undefined local variable or method enum
2 participants