Sha256: d1f94fb00d848d72158115480a7fd65b89fe20955c9c499791c9b5011e54a66b

Contents?: true

Size: 478 Bytes

Versions: 26

Compression:

Stored size: 478 Bytes

Contents

module Nanoc::Int::RuleMemoryActions
  class Filter < Nanoc::Int::RuleMemoryAction
    # 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

26 entries across 26 versions & 1 rubygems

Version Path
nanoc-4.3.8 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.7 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.6 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.5 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.4 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.3 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.2 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.1 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.3.0 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.4 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.3 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.2 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.1 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.0 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.1.6 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.2.0b1 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.1.5 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.1.4 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.1.3 lib/nanoc/base/entities/rule_memory_actions/filter.rb
nanoc-4.1.2 lib/nanoc/base/entities/rule_memory_actions/filter.rb