Shortcut to use methods on aspect for advice logic #12

Closed
gcao opened this Issue Dec 31, 2012 · 2 comments

Projects

None yet

2 participants

Owner
gcao commented Dec 31, 2012
class TestAspect < Aspector::Base
  def do_something
    puts 'do_something'
  end

  before :initialize, :do_something
end

TestAspect.apply(SomeClass)
SomeClass.new

#Output:
#do_something
Collaborator
mensfeld commented Jul 6, 2015

isn't this already there? ;)

Owner
gcao commented Jul 6, 2015

Yes.

@gcao gcao closed this Jul 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment