Class: Nanoc::Int::RuleMemoryActions::Filter Private
- Inherits:
-
Nanoc::Int::RuleMemoryAction
- Object
- Nanoc::Int::RuleMemoryAction
- Nanoc::Int::RuleMemoryActions::Filter
- Defined in:
- lib/nanoc/base/entities/rule_memory_actions/filter.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#filter_name ⇒ Object
readonly
private
filter :foo filter :foo, params.
- #params ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(filter_name, params) ⇒ Filter
constructor
private
A new instance of Filter.
- #serialize ⇒ Object private
- #to_s ⇒ Object private
Methods inherited from Nanoc::Int::RuleMemoryAction
Constructor Details
#initialize(filter_name, params) ⇒ Filter
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Filter.
9 10 11 12 |
# File 'lib/nanoc/base/entities/rule_memory_actions/filter.rb', line 9 def initialize(filter_name, params) @filter_name = filter_name @params = params end |
Instance Attribute Details
#filter_name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
filter :foo filter :foo, params
6 7 8 |
# File 'lib/nanoc/base/entities/rule_memory_actions/filter.rb', line 6 def filter_name @filter_name end |
#params ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
7 8 9 |
# File 'lib/nanoc/base/entities/rule_memory_actions/filter.rb', line 7 def params @params end |
Instance Method Details
#serialize ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
14 15 16 |
# File 'lib/nanoc/base/entities/rule_memory_actions/filter.rb', line 14 def serialize [:filter, @filter_name, Nanoc::Int::Checksummer.calc(@params)] end |
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/nanoc/base/entities/rule_memory_actions/filter.rb', line 18 def to_s "filter #{@filter_name.inspect}, #{@params.inspect}" end |