Class: MapReader::MapDoor
- Inherits:
-
Object
- Object
- MapReader::MapDoor
- Defined in:
- lib/IFMapper/MapReader.rb
Instance Attribute Summary collapse
-
#connector ⇒ Object
Returns the value of attribute connector.
-
#location ⇒ Object
Returns the value of attribute location.
-
#locked ⇒ Object
Returns the value of attribute locked.
-
#name ⇒ Object
Returns the value of attribute name.
-
#tag ⇒ Object
Returns the value of attribute tag.
Instance Method Summary collapse
-
#initialize ⇒ MapDoor
constructor
end.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ MapDoor
end
91 92 93 |
# File 'lib/IFMapper/MapReader.rb', line 91 def initialize @location = [] end |
Instance Attribute Details
#connector ⇒ Object
Returns the value of attribute connector.
88 89 90 |
# File 'lib/IFMapper/MapReader.rb', line 88 def connector @connector end |
#location ⇒ Object
Returns the value of attribute location.
88 89 90 |
# File 'lib/IFMapper/MapReader.rb', line 88 def location @location end |
#locked ⇒ Object
Returns the value of attribute locked.
88 89 90 |
# File 'lib/IFMapper/MapReader.rb', line 88 def locked @locked end |
#name ⇒ Object
Returns the value of attribute name.
88 89 90 |
# File 'lib/IFMapper/MapReader.rb', line 88 def name @name end |
#tag ⇒ Object
Returns the value of attribute tag.
88 89 90 |
# File 'lib/IFMapper/MapReader.rb', line 88 def tag @tag end |
Instance Method Details
#to_s ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 |
# File 'lib/IFMapper/MapReader.rb', line 94 def to_s if locked door = '<|>' else door = '<->' end c = '' if connector c = ' (connector)' end "#{location[0]}#{door}#{location[1]}#{c}" end |