class Nanoc::Core::ProcessingActions::Snapshot
Attributes
paths[R]
snapshot_names[R]
Public Class Methods
new(snapshot_names, paths)
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 16 def initialize(snapshot_names, paths) @snapshot_names = snapshot_names @paths = paths end
Public Instance Methods
==(other)
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 40 def ==(other) self.class == other.class && snapshot_names == other.snapshot_names && paths == other.paths end
eql?(other)
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 44 def eql?(other) self == other end
hash()
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 36 def hash self.class.hash ^ snapshot_names.hash ^ paths.hash end
serialize()
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 22 def serialize [:snapshot, @snapshot_names, true, @paths] end
to_s()
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 32 def to_s "snapshot #{@snapshot_names.inspect}, paths: #{@paths.inspect}" end
update(snapshot_names: [], paths: [])
click to toggle source
# File lib/nanoc/core/processing_actions/snapshot.rb, line 27 def update(snapshot_names: [], paths: []) self.class.new(@snapshot_names + snapshot_names.to_a, @paths + paths.to_a) end