Class: Nanoc::RuleDSL::ActionSequenceCalculator::PathWithoutInitialSlashError Private

Inherits:
Error
  • Object
show all
Defined in:
lib/nanoc/rule_dsl/action_sequence_calculator.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(rep, basic_path) ⇒ PathWithoutInitialSlashError

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



24
25
26
27
28
29
30
# File 'lib/nanoc/rule_dsl/action_sequence_calculator.rb', line 24

def initialize(rep, basic_path)
  super(
    "The path returned for the #{rep.inspect} item representation, " \
    "#{basic_path}”, does not start with a slash. Please ensure that " \
    'all routing rules return a path that starts with a slash.',
  )
end