Included Modules

Innate::Helper::Aspect::SingletonMethods

Public Instance Methods

add_action_wrapper(order, method_name) click to toggle source
# File lib/innate/helper/aspect.rb, line 115
def add_action_wrapper(order, method_name)
  if wrap = trait[:wrap]
    wrap.merge(SortedSet[[order, method_name.to_s]])
  else
    trait :wrap => SortedSet[[order, method_name.to_s]]
  end
end
after(*names, &block) click to toggle source
# File lib/innate/helper/aspect.rb, line 106
def after(*names, &block)
  names.each{|name| AOP[self][:after][name] = block }
end
after_all(&block) click to toggle source
# File lib/innate/helper/aspect.rb, line 102
def after_all(&block)
  AOP[self][:after_all] = block
end
before(*names, &block) click to toggle source
# File lib/innate/helper/aspect.rb, line 98
def before(*names, &block)
  names.each{|name| AOP[self][:before][name] = block }
end
before_all(&block) click to toggle source
# File lib/innate/helper/aspect.rb, line 94
def before_all(&block)
  AOP[self][:before_all] = block
end
wrap(*names, &block) click to toggle source
# File lib/innate/helper/aspect.rb, line 110
def wrap(*names, &block)
  before(*names, &block)
  after(*names, &block)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.