Sha256: fb6a17005790438ac99385679c80d98e2bbdbabbd9d55f4be991f5fd545dac18

Contents?: true

Size: 509 Bytes

Versions: 32

Compression:

Stored size: 509 Bytes

Contents

# frozen_string_literal: true

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

32 entries across 32 versions & 1 rubygems

Version Path
nanoc-4.9.6 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.5 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.4 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.3 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.2 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.1 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.9.0 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.19 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.18 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.17 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.16 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.15 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.14 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.13 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.12 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.11 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.10 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.9 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.8 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.7 lib/nanoc/base/entities/processing_actions/filter.rb