Class: KeyboardChar

Inherits:
Object
  • Object
show all
Defined in:
lib/MonkeyKeyboard/keyboard_char.rb

Overview

Represents a keyboard character.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#charObject (readonly)

Returns the value of attribute char.



5
6
7
# File 'lib/MonkeyKeyboard/keyboard_char.rb', line 5

def char
  @char
end