Class: World::WorldObject
Instance Attribute Summary collapse
-
#desc ⇒ Object
readonly
Returns the value of attribute desc.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#tags ⇒ Object
readonly
Returns the value of attribute tags.
Instance Method Summary collapse
-
#initialize(name, tags, desc = '') ⇒ WorldObject
constructor
A new instance of WorldObject.
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, , desc='') @name = name @tags = @desc = desc end |
Instance Attribute Details
#desc ⇒ Object (readonly)
Returns the value of attribute desc.
13 14 15 |
# File 'lib/tools/world.rb', line 13 def desc @desc end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
13 14 15 |
# File 'lib/tools/world.rb', line 13 def name @name end |
#tags ⇒ Object (readonly)
Returns the value of attribute tags.
13 14 15 |
# File 'lib/tools/world.rb', line 13 def @tags end |