class Nanoc::Int::RuleMemoryActions::Snapshot

Attributes

final[R]
final?[R]
path[R]
snapshot_name[R]

snapshot :before_layout snapshot :before_layout, final: true snapshot :before_layout, path: '/about.md'

Public Class Methods

new(snapshot_name, final, path) click to toggle source
# File lib/nanoc/base/entities/rule_memory_actions/snapshot.rb, line 12
def initialize(snapshot_name, final, path)
  @snapshot_name = snapshot_name
  @final = final
  @path = path
end

Public Instance Methods

serialize() click to toggle source
# File lib/nanoc/base/entities/rule_memory_actions/snapshot.rb, line 18
def serialize
  [:snapshot, @snapshot_name, @final, @path]
end
to_s() click to toggle source
# File lib/nanoc/base/entities/rule_memory_actions/snapshot.rb, line 22
def to_s
  "snapshot #{@snapshot_name.inspect}, final: #{@final.inspect}, path: #{@path.inspect}"
end