Class: RbSnake::App
- Inherits:
-
Object
- Object
- RbSnake::App
- Defined in:
- lib/rb_snake/app.rb
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
-
#window ⇒ Object
readonly
Returns the value of attribute window.
Instance Method Summary collapse
-
#initialize ⇒ App
constructor
A new instance of App.
- #start ⇒ Object
Constructor Details
#initialize ⇒ App
Returns a new instance of App.
10 11 12 |
# File 'lib/rb_snake/app.rb', line 10 def initialize @state = Models::State.initial_state end |
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state.
8 9 10 |
# File 'lib/rb_snake/app.rb', line 8 def state @state end |
#window ⇒ Object (readonly)
Returns the value of attribute window.
8 9 10 |
# File 'lib/rb_snake/app.rb', line 8 def window @window end |