Class: MapReader::MapOneWay

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(room) ⇒ MapOneWay

Returns a new instance of MapOneWay.



110
111
112
# File 'lib/IFMapper/MapReader.rb', line 110

def initialize(room)
  @room = room
end

Instance Attribute Details

#roomObject (readonly)

Returns the value of attribute room.



109
110
111
# File 'lib/IFMapper/MapReader.rb', line 109

def room
  @room
end

Instance Method Details

#to_sObject



113
114
115
# File 'lib/IFMapper/MapReader.rb', line 113

def to_s
  "ONE WAY: #{room}"
end