Sha256: 757d334429d9e83e4c455da807b52809b4d68927d6abd5bf6a4206b204145b42
Contents?: true
Size: 521 Bytes
Versions: 26
Compression:
Stored size: 521 Bytes
Contents
module Nanoc::Int::RuleMemoryActions class Layout < Nanoc::Int::RuleMemoryAction # layout '/foo.erb' # layout '/foo.erb', params attr_reader :layout_identifier attr_reader :params def initialize(layout_identifier, params) @layout_identifier = layout_identifier @params = params end def serialize [:layout, @layout_identifier, Nanoc::Int::Checksummer.calc(@params)] end def to_s "layout #{@layout_identifier.inspect}, #{@params.inspect}" end end end
Version data entries
26 entries across 26 versions & 1 rubygems