Module: Stove::Mixin::Filterable

Included in:
Plugin::Base
Defined in:
lib/stove/mixins/filterable.rb

Instance Method Summary collapse

Instance Method Details

#after(action, message, &block) ⇒ Object



7
8
9
# File 'lib/stove/mixins/filterable.rb', line 7

def after(action, message, &block)
  Runner.filters[action][:after] << Filter.new(self, message, &block)
end

#before(action, message, &block) ⇒ Object



3
4
5
# File 'lib/stove/mixins/filterable.rb', line 3

def before(action, message, &block)
  Runner.filters[action][:before] << Filter.new(self, message, &block)
end