Sha256: 9c60daa7ed4b9245e5189b09621ae6e109aab0695945cbf12a031ee8c852d439

Contents?: true

Size: 478 Bytes

Versions: 28

Compression:

Stored size: 478 Bytes

Contents

module Nanoc::Int::ProcessingActions
  class Filter < Nanoc::Int::ProcessingAction
    # filter :foo
    # filter :foo, params

    attr_reader :filter_name
    attr_reader :params

    def initialize(filter_name, params)
      @filter_name = filter_name
      @params      = params
    end

    def serialize
      [:filter, @filter_name, Nanoc::Int::Checksummer.calc(@params)]
    end

    def to_s
      "filter #{@filter_name.inspect}, #{@params.inspect}"
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.8 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.7 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.6 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.5 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.4 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.3 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.2 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.1 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.0 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.6.4 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.6.3 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.6.2 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.6.1 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.6.0 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.5.4 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.5.3 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.5.2 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.5.1 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.5.0 lib/nanoc/base/entities/processing_actions/filter.rb