-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
Hello!
Is there way to point on methods with regex or mask? Example:
after /base/ do |*, team| team.save end
In class i usually have several base methods which names started from certain word ("base_*", for example).
And i wanted use callbacks to my base methods, and not use for others methods.
UPD: It seems like i found a way to do it:
after(self.instance_methods(false).grep(/base/)) do ... end
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels