Class: KeyboardChar
- Inherits:
-
Object
- Object
- KeyboardChar
- Defined in:
- lib/MonkeyKeyboard/keyboard_char.rb
Overview
Represents a keyboard character.
Instance Attribute Summary collapse
-
#char ⇒ Object
readonly
Returns the value of attribute char.
Instance Method Summary collapse
-
#initialize(char) ⇒ KeyboardChar
constructor
A new instance of KeyboardChar.
Constructor Details
#initialize(char) ⇒ KeyboardChar
Returns a new instance of KeyboardChar.
7 8 9 |
# File 'lib/MonkeyKeyboard/keyboard_char.rb', line 7 def initialize(char) @char = char end |
Instance Attribute Details
#char ⇒ Object (readonly)
Returns the value of attribute char.
5 6 7 |
# File 'lib/MonkeyKeyboard/keyboard_char.rb', line 5 def char @char end |