-
Notifications
You must be signed in to change notification settings - Fork 17
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
DynamicNode faked/neutered Arrays are unintelligible frankenbeasts #66
Comments
I think this is the missing logic: We need
But, we can at least say we care about the methods defined by the val object. And we don't have to say where those calls would be serviced, just that yes they are not defined, but we will respond to them... somehow or other. |
In practice,
Note: the specialized constructor methods invoked by method_missing really should be |
@atz I don't see any reason not to encourage you! |
…ssing? Consolidated specialized constructor methods and marked intended internal methods as private. Throw a sensible NoMethodError when needed! The tests checking for NoMethodError would pass... but only because of an inscrutable error when a method was invoked on NilClass. Tests that demonstrate the necessity of changes.
…ssing? Consolidated specialized constructor methods and marked intended internal methods as private. Throw a sensible NoMethodError when needed! The tests checking for NoMethodError would pass... but only because of an inscrutable error when a method was invoked on NilClass. Tests that demonstrate the necessity of changes.
DynamicNode tries too hard to be invisible and fails.
The former succeeds, the latter fails.
So the object does not think it respond_to?(:include), despite the fact it just did respond to it. Cute, eh? This is on a
1.8.x
release.The text was updated successfully, but these errors were encountered: