Class: Nanoc::Helpers::Breadcrumbs::AmbiguousAncestorError

Inherits:
Core::Error
  • Object
show all
Defined in:
lib/nanoc/helpers/breadcrumbs.rb

Instance Method Summary collapse

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

#messageObject



12
13
14
# File 'lib/nanoc/helpers/breadcrumbs.rb', line 12

def message
  "expected only one item to match #{@pattern}, but found #{@items.size}"
end