Sha256: de551c2944d5fb56cb21fc973ecf7cb0b673419562d1c2e9b6dde03bb99c24f9

Contents?: true

Size: 253 Bytes

Versions: 21

Compression:

Stored size: 253 Bytes

Contents

class Kumogata::OutputsFilter
  def initialize(options)
    @options = options
  end

  def fetch!(template)
    @filter = template.delete(:_outputs_filter)
  end

  def filter!(outputs)
    @filter.call(outputs) if @filter
    return outputs
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
kumogata-0.5.12 lib/kumogata/outputs_filter.rb
kumogata-0.5.11 lib/kumogata/outputs_filter.rb
kumogata-0.5.10 lib/kumogata/outputs_filter.rb
kumogata-0.5.9 lib/kumogata/outputs_filter.rb
kumogata-0.5.8 lib/kumogata/outputs_filter.rb
kumogata-0.5.7 lib/kumogata/outputs_filter.rb
kumogata-0.5.6 lib/kumogata/outputs_filter.rb
kumogata-0.5.5 lib/kumogata/outputs_filter.rb
kumogata-0.5.4 lib/kumogata/outputs_filter.rb
kumogata-0.5.3 lib/kumogata/outputs_filter.rb
kumogata-0.5.2 lib/kumogata/outputs_filter.rb
kumogata-0.5.2.beta2 lib/kumogata/outputs_filter.rb
kumogata-0.5.2.beta lib/kumogata/outputs_filter.rb
kumogata-0.5.1 lib/kumogata/outputs_filter.rb
kumogata-0.5.0 lib/kumogata/outputs_filter.rb
kumogata-0.4.19 lib/kumogata/outputs_filter.rb
kumogata-0.4.18 lib/kumogata/outputs_filter.rb
kumogata-0.4.17 lib/kumogata/outputs_filter.rb
kumogata-0.4.16 lib/kumogata/outputs_filter.rb
kumogata-0.4.15 lib/kumogata/outputs_filter.rb