Class: Tortard::Map
- Inherits:
-
Object
- Object
- Tortard::Map
- Defined in:
- lib/tortard/map.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#socks ⇒ Object
readonly
Returns the value of attribute socks.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(socks, from, to) ⇒ Map
constructor
A new instance of Map.
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
#from ⇒ Object (readonly)
Returns the value of attribute from.
21 22 23 |
# File 'lib/tortard/map.rb', line 21 def from @from end |
#socks ⇒ Object (readonly)
Returns the value of attribute socks.
21 22 23 |
# File 'lib/tortard/map.rb', line 21 def socks @socks end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
21 22 23 |
# File 'lib/tortard/map.rb', line 21 def to @to end |