Class: KeyboardInput
- Inherits:
-
Object
- Object
- KeyboardInput
- Defined in:
- lib/MonkeyKeyboard/keyboard_input.rb
Overview
Represents keyboard input.
Instance Attribute Summary collapse
-
#input ⇒ Object
Returns the value of attribute input.
-
#is_word ⇒ Object
Returns the value of attribute is_word.
Instance Method Summary collapse
-
#initialize ⇒ KeyboardInput
constructor
A new instance of KeyboardInput.
- #input_to_s ⇒ Object
Constructor Details
#initialize ⇒ KeyboardInput
Returns a new instance of KeyboardInput.
7 8 9 10 |
# File 'lib/MonkeyKeyboard/keyboard_input.rb', line 7 def initialize @is_word = false @input = [] end |
Instance Attribute Details
#input ⇒ Object
Returns the value of attribute input.
5 6 7 |
# File 'lib/MonkeyKeyboard/keyboard_input.rb', line 5 def input @input end |
#is_word ⇒ Object
Returns the value of attribute is_word.
5 6 7 |
# File 'lib/MonkeyKeyboard/keyboard_input.rb', line 5 def is_word @is_word end |
Instance Method Details
#input_to_s ⇒ Object
12 13 14 |
# File 'lib/MonkeyKeyboard/keyboard_input.rb', line 12 def input_to_s @input.join.to_s end |