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.4.14 lib/kumogata/outputs_filter.rb