Class: Reflex::FocusEvent

Inherits:
Event
  • Object
show all
Defined in:
lib/reflex/focus_event.rb

Instance Method Summary collapse

Instance Method Details

#blur?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/reflex/focus_event.rb', line 22

def blur?()
  get_action == BLUR
end

#focus?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/reflex/focus_event.rb', line 18

def focus?()
  get_action == FOCUS
end

#inspectObject



26
27
28
# File 'lib/reflex/focus_event.rb', line 26

def inspect()
  "#<Reflex::FocusEvent action:#{action} current:#{current} last:#{last}>"
end