We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As another convenience, allow Speck.new to be called with no arguments directly after the definition of a method to attach it to that method.
Speck.new
Worth noting: Object#instance_methods seems to preserve the order in which methods were defined, to some extent:
Object#instance_methods
(ancestors - [self]).inject(instance_methods) {|methods, ancestor| methods - ancestor.instance_methods }
With some hackery, we could probably even recognize the last class defined (perhaps by looking at the owner of the last speck’d method was?)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
As another convenience, allow
Speck.new
to be called with no arguments directly after the definition of a method to attach it to that method.Worth noting:
Object#instance_methods
seems to preserve the order in which methods were defined, to some extent:With some hackery, we could probably even recognize the last class defined (perhaps by looking at the owner of the last speck’d method was?)
The text was updated successfully, but these errors were encountered: