Sha256: 46c76988e6e3145edadfc7060642378fd98f0dfe89b8638a79c6970437d66a39
Contents?: true
Size: 511 Bytes
Versions: 8
Compression:
Stored size: 511 Bytes
Contents
# -*- coding: utf-8 -*- require 'xot/const_symbol_accessor' require 'reflex/ext' module Reflex class FocusEvent < Event alias get_type type const_symbol_reader :type, { none: TYPE_NONE, focus: TYPE_FOCUS, blur: TYPE_BLUR } def focus? () get_type == TYPE_FOCUS end def blur? () get_type == TYPE_BLUR end def inspect () "#<Reflex::FocusEvent type:#{type} current:#{current} last:#{last}>" end end# FocusEvent end# Reflex
Version data entries
8 entries across 8 versions & 1 rubygems