Class: Bread
- Inherits:
-
Object
- Object
- Bread
- Defined in:
- lib/lokka/bread_crumb.rb
Instance Attribute Summary collapse
-
#last ⇒ Object
Returns the value of attribute last.
-
#link ⇒ Object
Returns the value of attribute link.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, link, last = false) ⇒ Bread
constructor
A new instance of Bread.
- #last? ⇒ Boolean
Constructor Details
#initialize(name, link, last = false) ⇒ Bread
Returns a new instance of Bread.
4 5 6 7 8 |
# File 'lib/lokka/bread_crumb.rb', line 4 def initialize(name, link, last = false) @name = name @link = link @last = last end |
Instance Attribute Details
#last ⇒ Object
Returns the value of attribute last.
2 3 4 |
# File 'lib/lokka/bread_crumb.rb', line 2 def last @last end |
#link ⇒ Object
Returns the value of attribute link.
2 3 4 |
# File 'lib/lokka/bread_crumb.rb', line 2 def link @link end |
#name ⇒ Object
Returns the value of attribute name.
2 3 4 |
# File 'lib/lokka/bread_crumb.rb', line 2 def name @name end |
Instance Method Details
#last? ⇒ Boolean
10 11 12 |
# File 'lib/lokka/bread_crumb.rb', line 10 def last? @last end |