Class: Waypoint

Inherits:
Object
  • Object
show all
Defined in:
lib/lister.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#itemObject

Returns the value of attribute item.



5
6
7
# File 'lib/lister.rb', line 5

def item
  @item
end

#leads_toObject

Returns the value of attribute leads_to.



5
6
7
# File 'lib/lister.rb', line 5

def leads_to
  @leads_to
end