Exception: Nanoc::Core::ItemRepRouter::RouteWithoutSlashError Private

Inherits:
Error
  • Object
show all
Defined in:
lib/nanoc/core/item_rep_router.rb

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.

Instance Method Summary collapse

Constructor Details

#initialize(output_path, rep) ⇒ RouteWithoutSlashError

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 RouteWithoutSlashError.



18
19
20
# File 'lib/nanoc/core/item_rep_router.rb', line 18

def initialize(output_path, rep)
  super("The item representation #{rep} is routed to #{output_path}, which does not start with a slash, as required.")
end