class Nanoc::Core::ProcessingActions::Layout
Attributes
layout_identifier[R]
layout '/foo.erb' layout '/foo.erb', params
params[R]
Public Class Methods
new(layout_identifier, params)
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 13 def initialize(layout_identifier, params) @layout_identifier = layout_identifier @params = params end
Public Instance Methods
==(other)
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 30 def ==(other) self.class == other.class && layout_identifier == other.layout_identifier && params == other.params end
eql?(other)
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 34 def eql?(other) self == other end
hash()
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 26 def hash self.class.hash ^ layout_identifier.hash ^ params.hash end
serialize()
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 18 def serialize [:layout, @layout_identifier, Nanoc::Core::Checksummer.calc(@params)] end
to_s()
click to toggle source
# File lib/nanoc/core/processing_actions/layout.rb, line 22 def to_s "layout #{@layout_identifier.inspect}, #{@params.inspect}" end