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, , &block) Runner.filters[action][:after] << Filter.new(self, , &block) end |
#before(action, message, &block) ⇒ Object
3 4 5 |
# File 'lib/stove/mixins/filterable.rb', line 3 def before(action, , &block) Runner.filters[action][:before] << Filter.new(self, , &block) end |