Class: Tortard::Map

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(socks, from, to) ⇒ Map

Returns a new instance of Map.



23
24
25
26
27
# File 'lib/tortard/map.rb', line 23

def initialize (socks, from, to)
	@socks = socks
	@from  = from
	@to    = to
end

Instance Attribute Details

#fromObject (readonly)

Returns the value of attribute from.



21
22
23
# File 'lib/tortard/map.rb', line 21

def from
  @from
end

#socksObject (readonly)

Returns the value of attribute socks.



21
22
23
# File 'lib/tortard/map.rb', line 21

def socks
  @socks
end

#toObject (readonly)

Returns the value of attribute to.



21
22
23
# File 'lib/tortard/map.rb', line 21

def to
  @to
end