Class: Smalruby::World
- Inherits:
-
Object
- Object
- Smalruby::World
- Includes:
- Singleton
- Defined in:
- lib/smalruby/world.rb
Overview
環境を表現するクラス
Instance Attribute Summary collapse
-
#objects ⇒ Object
Returns the value of attribute objects.
Instance Method Summary collapse
-
#initialize ⇒ World
constructor
A new instance of World.
Constructor Details
#initialize ⇒ World
Returns a new instance of World.
11 12 13 |
# File 'lib/smalruby/world.rb', line 11 def initialize @objects = [] end |
Instance Attribute Details
#objects ⇒ Object
Returns the value of attribute objects.
9 10 11 |
# File 'lib/smalruby/world.rb', line 9 def objects @objects end |