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

Allow methods such as to_a, to_json on hash objects #259

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

lwoggardner
Copy link
Contributor

This change makes Hash entries in a context behave more like other object that can have their zero arity methods called on them directly.

Like other objects there is a risk that mutable methods would be called (eg compact!) but this applies to Array already and hash for default_proc (if the default_proc mutates).

@lwoggardner
Copy link
Contributor Author

The autoload tests are not reliable under later rubies - some interaction between tests. This may or may not indicate a problem with the autoloading mechanism in the real world.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants