Methods

Class/Module Index [+]

Quicksearch

Nanoc::Errors::CannotCreateMultipleSnapshotsWithSameName

Error that is raised when a snapshot with an existing name is made.

Public Class Methods

new(rep, snapshot) click to toggle source

@param [Nanoc::ItemRep] rep The item representation for which a

snapshot was attempted to be made

@param [Symbol] snapshot The name of the snapshot that was attempted to

be made
# File lib/nanoc/base/errors.rb, line 198
def initialize(rep, snapshot)
  super("Attempted to create a snapshot with a duplicate name #{snapshot.inspect} for the item rep “#{rep.inspect}”")
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.