Class: Nanoc::Helpers::Breadcrumbs::AmbiguousAncestorError
- Inherits:
-
Core::Error
- Object
- Core::Error
- Nanoc::Helpers::Breadcrumbs::AmbiguousAncestorError
- Defined in:
- lib/nanoc/helpers/breadcrumbs.rb
Instance Method Summary collapse
-
#initialize(pattern, items) ⇒ AmbiguousAncestorError
constructor
A new instance of AmbiguousAncestorError.
- #message ⇒ Object
Constructor Details
#initialize(pattern, items) ⇒ AmbiguousAncestorError
Returns a new instance of AmbiguousAncestorError.
7 8 9 10 |
# File 'lib/nanoc/helpers/breadcrumbs.rb', line 7 def initialize(pattern, items) @pattern = pattern @items = items end |
Instance Method Details
#message ⇒ Object
12 13 14 |
# File 'lib/nanoc/helpers/breadcrumbs.rb', line 12 def "expected only one item to match #{@pattern}, but found #{@items.size}" end |