Sha256: 3c3911ada1614f5ec843345269d9fbdbcfce9a594dab25cabb42f6c64cdb9a0c

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

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

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
stove-2.0.0 lib/stove/mixins/filterable.rb
stove-2.0.0.beta.2 lib/stove/mixins/filterable.rb
stove-2.0.0.beta.1 lib/stove/mixins/filterable.rb