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