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

use BasicObject as base class for Attributor::Model instead of Object #71

Open
smessier opened this issue Aug 4, 2014 · 0 comments
Open
Milestone

Comments

@smessier
Copy link

smessier commented Aug 4, 2014

The issue is that 3rd-party DSLs such as Rake (pre-v10) will define methods on Object that can conflict with attribute names. Since Model does not remove pre-existing method definitions it will simply inherit from Object a method such as 'namespace'. When the 'namespace' attribute is invoked the code instead calls through to Rake v9.

Using BasicObject is tricky, of course, because it lacks useful methods like #to_s, #inspect, #methods, etc

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

No branches or pull requests

2 participants