Class: Moon::KeyboardTypingEvent

Inherits:
Event show all
Includes:
KeyboardEvent
Defined in:
lib/moon/packages/std/event.rb

Instance Attribute Summary collapse

Attributes inherited from Event

#id, #type

Instance Method Summary collapse

Methods inherited from Event

make_filter

Constructor Details

#initialize(char) ⇒ KeyboardTypingEvent

Returns a new instance of KeyboardTypingEvent.


95
96
97
98
99
# File 'lib/moon/packages/std/event.rb', line 95

def initialize(char)
  @char = char
  @action = :typing
  super @action
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action


92
93
94
# File 'lib/moon/packages/std/event.rb', line 92

def action
  @action
end

#charObject

Returns the value of attribute char


93
94
95
# File 'lib/moon/packages/std/event.rb', line 93

def char
  @char
end