Class: BreadcrumbsOnRails::Breadcrumbs::Element
- Inherits:
-
Object
- Object
- BreadcrumbsOnRails::Breadcrumbs::Element
- Defined in:
- lib/breadcrumbs_on_rails/breadcrumbs.rb
Overview
Element
Represents a navigation element (probably a breadcrumb level) in the breadcrumb collection.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(name, path) ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(name, path) ⇒ Element
Returns a new instance of Element.
130 131 132 133 |
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 130 def initialize(name, path) self.name = name self.path = path end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
128 129 130 |
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 128 def name @name end |
#path ⇒ Object
Returns the value of attribute path.
128 129 130 |
# File 'lib/breadcrumbs_on_rails/breadcrumbs.rb', line 128 def path @path end |