class Nanoc::Core::ProcessingActions::Filter
Attributes
filter_name[R]
filter :foo filter :foo, params
params[R]
Public Class Methods
new(filter_name, params)
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 15 def initialize(filter_name, params) @filter_name = filter_name @params = params end
Public Instance Methods
==(other)
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 32 def ==(other) self.class == other.class && filter_name == other.filter_name && params == other.params end
eql?(other)
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 36 def eql?(other) self == other end
hash()
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 28 def hash self.class.hash ^ filter_name.hash ^ params.hash end
serialize()
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 20 def serialize [:filter, @filter_name, Nanoc::Core::Checksummer.calc(@params)] end
to_s()
click to toggle source
# File lib/nanoc/core/processing_actions/filter.rb, line 24 def to_s "filter #{@filter_name.inspect}, #{@params.inspect}" end