Class: CARPS::Room
- Inherits:
-
Object
- Object
- CARPS::Room
- Defined in:
- lib/carps/mod/dm/room.rb
Overview
A room, loaded in by the Resource class
Instance Method Summary collapse
- #describe ⇒ Object
-
#initialize(filepath) ⇒ Room
constructor
A new instance of Room.
Constructor Details
#initialize(filepath) ⇒ Room
Returns a new instance of Room.
23 24 25 |
# File 'lib/carps/mod/dm/room.rb', line 23 def initialize filepath @desc = File.read filepath end |
Instance Method Details
#describe ⇒ Object
27 28 29 |
# File 'lib/carps/mod/dm/room.rb', line 27 def describe @desc end |