Class: OR2D::Console::State
- Inherits:
-
Struct
- Object
- Struct
- OR2D::Console::State
- Defined in:
- lib/or2d/console.rb
Overview
Contains the state of the console.
Instance Method Summary collapse
-
#disable ⇒ Object
Disables console input.
-
#enable ⇒ Object
Enables console input.
-
#toggle ⇒ Object
Toggle console input.
Instance Method Details
#disable ⇒ Object
Disables console input
102 103 104 |
# File 'lib/or2d/console.rb', line 102 def disable self.enabled = false end |
#enable ⇒ Object
Enables console input
97 98 99 |
# File 'lib/or2d/console.rb', line 97 def enable self.enabled = true end |
#toggle ⇒ Object
Toggle console input
107 108 109 |
# File 'lib/or2d/console.rb', line 107 def toggle self.enabled = !self.enabled end |