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.



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

def initialize(char)
  @char = char
  self
end

Instance Attribute Details

#charObject (readonly)

Returns the value of attribute char.



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

def char
  @char
end