class Navigasmic::Builder::CrumbBuilder::Configuration

Attributes

item_class[RW]
label_generator[RW]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/navigasmic/builders/crumb_builder.rb, line 8
def initialize
  # which keys (for other builder) should be removed from options
  @excluded_keys = [:map]

  # class configurations
  @item_class = nil

  # generator callbacks
  @link_generator = proc{ |label, link, options, is_nested| link_to(label, link, options.delete(:link_html)) }
  @label_generator = proc{ |label, is_linked, is_nested| "<span>#{label}</span>" }

  super
end