Class: Rubinstein::Location

Inherits:
Object
  • Object
show all
Defined in:
lib/rubinstein/location.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exitsObject

Returns the value of attribute exits.



4
5
6
# File 'lib/rubinstein/location.rb', line 4

def exits
  @exits
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/rubinstein/location.rb', line 4

def name
  @name
end