Class: Zonebie::Extras::AsciiMap
- Inherits:
-
Object
- Object
- Zonebie::Extras::AsciiMap
- Defined in:
- lib/zonebie/extras/ascii_map.rb
Instance Attribute Summary collapse
-
#ascii ⇒ Object
Returns the value of attribute ascii.
-
#image ⇒ Object
Returns the value of attribute image.
-
#mark ⇒ Object
Returns the value of attribute mark.
-
#zone ⇒ Object
Returns the value of attribute zone.
Instance Method Summary collapse
-
#initialize(zone) ⇒ AsciiMap
constructor
A new instance of AsciiMap.
- #to_s ⇒ Object
Constructor Details
#initialize(zone) ⇒ AsciiMap
Returns a new instance of AsciiMap.
13 14 15 16 17 |
# File 'lib/zonebie/extras/ascii_map.rb', line 13 def initialize(zone) self.zone = zone self.mark = false self.ascii = map_to_ascii end |
Instance Attribute Details
#ascii ⇒ Object
Returns the value of attribute ascii.
11 12 13 |
# File 'lib/zonebie/extras/ascii_map.rb', line 11 def ascii @ascii end |
#image ⇒ Object
Returns the value of attribute image.
11 12 13 |
# File 'lib/zonebie/extras/ascii_map.rb', line 11 def image @image end |
#mark ⇒ Object
Returns the value of attribute mark.
11 12 13 |
# File 'lib/zonebie/extras/ascii_map.rb', line 11 def mark @mark end |
#zone ⇒ Object
Returns the value of attribute zone.
11 12 13 |
# File 'lib/zonebie/extras/ascii_map.rb', line 11 def zone @zone end |
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/zonebie/extras/ascii_map.rb', line 19 def to_s ascii end |