Class: Nanoc::Int::Errors::CannotGetParentOrChildrenOfNonLegacyItem Private
- Defined in:
- lib/nanoc/base/errors.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Error that is raised when attempting to call #parent or #children on an item with a legacy identifier.
Instance Method Summary collapse
-
#initialize(identifier) ⇒ CannotGetParentOrChildrenOfNonLegacyItem
constructor
private
A new instance of CannotGetParentOrChildrenOfNonLegacyItem.
Constructor Details
#initialize(identifier) ⇒ CannotGetParentOrChildrenOfNonLegacyItem
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of CannotGetParentOrChildrenOfNonLegacyItem.
191 192 193 |
# File 'lib/nanoc/base/errors.rb', line 191 def initialize(identifier) super("You cannot get the parent or children of an item that has a “full” identifier (#{identifier}). Getting the parent or children of an item is only possible for items that have a legacy identifier.") end |