Class: CARPS::Room

Inherits:
Object
  • Object
show all
Defined in:
lib/carps/mod/dm/room.rb

Overview

A room, loaded in by the Resource class

Instance Method Summary collapse

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

#describeObject



27
28
29
# File 'lib/carps/mod/dm/room.rb', line 27

def describe
   @desc
end