Class: Smalruby::World
- Inherits:
-
Object
- Object
- Smalruby::World
- Includes:
- Singleton
- Defined in:
- lib/smalruby/world.rb
Overview
環境を表現するクラス
Instance Attribute Summary collapse
-
#board ⇒ Object
Returns the value of attribute board.
-
#current_stage ⇒ Object
Returns the value of attribute current_stage.
-
#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.
13 14 15 16 |
# File 'lib/smalruby/world.rb', line 13 def initialize @objects = [] @board = nil end |
Instance Attribute Details
#board ⇒ Object
Returns the value of attribute board.
10 11 12 |
# File 'lib/smalruby/world.rb', line 10 def board @board end |
#current_stage ⇒ Object
Returns the value of attribute current_stage.
11 12 13 |
# File 'lib/smalruby/world.rb', line 11 def current_stage @current_stage end |
#objects ⇒ Object
Returns the value of attribute objects.
9 10 11 |
# File 'lib/smalruby/world.rb', line 9 def objects @objects end |