Class/Module Index [+]

Quicksearch

Nanoc3::Helpers::Breadcrumbs

Provides support for breadcrumbs, which allow the user to go up in the page hierarchy.

Public Instance Methods

item_with_identifier(identifier) click to toggle source
# File lib/nanoc3/helpers/breadcrumbs.rb, line 20
def item_with_identifier(identifier)
  @identifier_cache ||= {}
  @identifier_cache[identifier] ||= begin
    @items.find { |i| i.identifier == identifier }
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.