Class: Reflex::FocusEvent

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

Instance Method Summary collapse

Instance Method Details

#blur?Boolean



20
21
22
# File 'lib/reflex/focus_event.rb', line 20

def blur? ()
  get_type == TYPE_BLUR
end

#focus?Boolean



16
17
18
# File 'lib/reflex/focus_event.rb', line 16

def focus? ()
  get_type == TYPE_FOCUS
end

#inspectObject



24
25
26
# File 'lib/reflex/focus_event.rb', line 24

def inspect ()
  "#<Reflex::FocusEvent type:#{type} focus:#{focus} last:#{last}>"
end

#typeObject



12
13
14
# File 'lib/reflex/focus_event.rb', line 12

def type ()
  TYPE2SYM[get_type] || :none
end