No description, website, or topics provided.
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/rasp
README.md

README.md

This is an idea I had for a general AOP library for ruby.

###Usage:

require 'rasp/aspect'

class Cheese
  def slice
    # do something...
  end
end


class EmailAspect < Rasp::Aspect

  before :slice, on: Cheese do |obj|
    PurchaseMailer.new.contact_buyer(obj.field_a, obj.field_b).deliver
  end

end