class BreadcrumbsOnRails::Breadcrumbs::Element
Represents a navigation element in the breadcrumb collection.
Attributes
name[RW]
@return [String] The element/link name.
options[RW]
@return [Hash] The element/link options.
path[RW]
@return [String] The element/link URL.
Public Class Methods
new(name, path = nil, options = {})
click to toggle source
Initializes the Element
with given parameters.
@param [String] name The element/link name. @param [String] path The element/link URL. @param [Hash] options The element/link options. @return [Element]
# File lib/breadcrumbs_on_rails/breadcrumbs.rb, line 121 def initialize(name, path = nil, options = {}) self.name = name self.path = path self.options = options end