Class: Rubinstein::Location
- Inherits:
-
Object
- Object
- Rubinstein::Location
- Defined in:
- lib/rubinstein/location.rb
Instance Attribute Summary collapse
-
#description(prose) ⇒ Object
Returns the value of attribute description.
-
#exits ⇒ Object
Returns the value of attribute exits.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Location
constructor
A new instance of Location.
Constructor Details
#initialize(name, &block) ⇒ Location
Returns a new instance of Location.
6 7 8 9 10 11 |
# File 'lib/rubinstein/location.rb', line 6 def initialize(name,&block) @name = name @exits = {} instance_eval &block end |
Instance Attribute Details
#description(prose) ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/rubinstein/location.rb', line 4 def description @description end |
#exits ⇒ Object
Returns the value of attribute exits.
4 5 6 |
# File 'lib/rubinstein/location.rb', line 4 def exits @exits end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/rubinstein/location.rb', line 4 def name @name end |