Sha256: 7bc6da2f2217f0b3a6133b1dcd21e24ce9e4da4a1d416f254dc551ba0a13232e
Contents?: true
Size: 641 Bytes
Versions: 20
Compression:
Stored size: 641 Bytes
Contents
module Nanoc::Int::RuleMemoryActions class Snapshot < Nanoc::Int::RuleMemoryAction # snapshot :before_layout # snapshot :before_layout, final: true # snapshot :before_layout, path: '/about.md' attr_reader :snapshot_name attr_reader :final attr_reader :path alias final? final def initialize(snapshot_name, final, path) @snapshot_name = snapshot_name @final = final @path = path end def serialize [:snapshot, @snapshot_name, @final, @path] end def to_s "snapshot #{@snapshot_name.inspect}, final: #{@final.inspect}, path: #{@path.inspect}" end end end
Version data entries
20 entries across 20 versions & 1 rubygems