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

[RubyForge-13405] Support "MyClass#my_method" and "MyClass.my_method" as convenience options #17

Open
hedgehog opened this issue Jan 29, 2010 · 1 comment

Comments

@hedgehog
Copy link

Date:2007-08-26 20:18
Priority:1
Submitted By:Dean Wampler (deanwampler)
Assigned To:Dean Wampler (deanwampler)
Category:Pointcut language
State:Open
Summary:Support "MyClass#my_method" and "MyClass.my_method" as convenience options

Detailed description

I.e.,
after "MyClass#my_method" ...

as a convenient alternative for instance methods instead of
after :type => MyClass, :method => :my_method

Simiarly,
after "MyClass.my_method" ...

as a convenient alternative for class methods instead of
after :type => MyClass, :method => :my_method, :method_options => [:class]

However, the distinction between '#' and '.' is probably too subtle and both should either be interpreted as instance methods (the most common case) or should be allowed to match either instance or class methods, whatever matches.

@hedgehog
Copy link
Author

I think the Class#method convention for referring to instance methods is sufficiently sell established in Rubyists minds that what you propose would be acceptable to most people. That is, I'd disagree with the 'However...'

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

1 participant