Class: World::WorldObject

Inherits:
Object show all
Defined in:
lib/tools/world.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, tags, desc = '') ⇒ WorldObject

Returns a new instance of WorldObject.



14
15
16
17
18
# File 'lib/tools/world.rb', line 14

def initialize(name, tags, desc='')
  @name = name
  @tags = tags
  @desc = desc
end

Instance Attribute Details

#descObject (readonly)

Returns the value of attribute desc.



13
14
15
# File 'lib/tools/world.rb', line 13

def desc
  @desc
end

#nameObject (readonly)

Returns the value of attribute name.



13
14
15
# File 'lib/tools/world.rb', line 13

def name
  @name
end

#tagsObject (readonly)

Returns the value of attribute tags.



13
14
15
# File 'lib/tools/world.rb', line 13

def tags
  @tags
end