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.8.6 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.5 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.4 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.3 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.2 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.1 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.8.0 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.14 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.13 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.12 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.11 lib/nanoc/base/entities/processing_actions/filter.rb
nanoc-4.7.10 lib/nanoc/base/entities/processing_actions/filter.rb