Class: WonderNavigation::Crumb
- Inherits:
-
Object
- Object
- WonderNavigation::Crumb
- Defined in:
- lib/wonder_navigation/crumb.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(id, label = nil) ⇒ Crumb
constructor
A new instance of Crumb.
Constructor Details
#initialize(id, label = nil) ⇒ Crumb
Returns a new instance of Crumb.
5 6 7 8 |
# File 'lib/wonder_navigation/crumb.rb', line 5 def initialize(id, label = nil) @id = id @label = label end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/wonder_navigation/crumb.rb', line 3 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
3 4 5 |
# File 'lib/wonder_navigation/crumb.rb', line 3 def label @label end |
#path ⇒ Object
Returns the value of attribute path.
3 4 5 |
# File 'lib/wonder_navigation/crumb.rb', line 3 def path @path end |