Sha256: 5e8b5db6476230f28fd56331f64969bdfc29b5fa61112b339acab17ffc83e09b

Contents?: true

Size: 521 Bytes

Versions: 28

Compression:

Stored size: 521 Bytes

Contents

module Nanoc::Int::ProcessingActions
  class Layout < Nanoc::Int::ProcessingAction
    # 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

28 entries across 28 versions & 1 rubygems

Version Path
nanoc-4.7.9 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.8 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.7 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.6 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.5 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.4 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.3 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.2 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.1 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.7.0 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.6.4 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.6.3 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.6.2 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.6.1 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.6.0 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.5.4 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.5.3 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.5.2 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.5.1 lib/nanoc/base/entities/processing_actions/layout.rb
nanoc-4.5.0 lib/nanoc/base/entities/processing_actions/layout.rb