Class: Proscenium::UI::Breadcrumbs::Element
- Inherits:
-
Object
- Object
- Proscenium::UI::Breadcrumbs::Element
- Defined in:
- lib/proscenium/ui/breadcrumbs/element.rb
Overview
Represents a navigation element in the breadcrumb collection.
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
Constructor Details
#initialize(name, path = nil, options = {}) ⇒ Element
11 12 13 14 15 |
# File 'lib/proscenium/ui/breadcrumbs/element.rb', line 11 def initialize(name, path = nil, = {}) self.name = name self.path = path self. = end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
5 6 7 |
# File 'lib/proscenium/ui/breadcrumbs/element.rb', line 5 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
5 6 7 |
# File 'lib/proscenium/ui/breadcrumbs/element.rb', line 5 def @options end |
#path ⇒ Object
Returns the value of attribute path.
5 6 7 |
# File 'lib/proscenium/ui/breadcrumbs/element.rb', line 5 def path @path end |