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
101 102 103 |
# File 'lib/or2d/console.rb', line 101 def disable self.enabled = false end |
#enable ⇒ Object
Enables console input
96 97 98 |
# File 'lib/or2d/console.rb', line 96 def enable self.enabled = true end |
#toggle ⇒ Object
Toggle console input
106 107 108 |
# File 'lib/or2d/console.rb', line 106 def toggle self.enabled = !self.enabled end |