Class: Waypoint
- Inherits:
-
Object
- Object
- Waypoint
- Defined in:
- lib/lister.rb
Instance Attribute Summary collapse
-
#item ⇒ Object
Returns the value of attribute item.
-
#leads_to ⇒ Object
Returns the value of attribute leads_to.
Instance Method Summary collapse
-
#initialize(item, leads_to = nil) ⇒ Waypoint
constructor
A new instance of Waypoint.
Constructor Details
#initialize(item, leads_to = nil) ⇒ Waypoint
Returns a new instance of Waypoint.
7 8 9 10 |
# File 'lib/lister.rb', line 7 def initialize(item, leads_to = nil) @item = item @leads_to = leads_to end |
Instance Attribute Details
#item ⇒ Object
Returns the value of attribute item.
5 6 7 |
# File 'lib/lister.rb', line 5 def item @item end |
#leads_to ⇒ Object
Returns the value of attribute leads_to.
5 6 7 |
# File 'lib/lister.rb', line 5 def leads_to @leads_to end |