Sha256: 3912c12d0648084a6d3eede658e471536c56f437818e5916c393019cd421327b
Contents?: true
Size: 622 Bytes
Versions: 5
Compression:
Stored size: 622 Bytes
Contents
module Browser; class Event class DeviceProximity < Event handles 'deviceproximity' def self.supported? Browser.supports? 'Event.DeviceProximity' end class Definition < Definition def value=(value) `#@native.value = #{value}` end def min=(value) `#@native.min = #{value}` end def max=(value) `#@native.max = #{value}` end end if Browser.supports? 'Event.constructor' def self.construct(name, desc) `new DeviceProximityEvent(#{name}, #{desc})` end end if supported? alias_native :value alias_native :min alias_native :max end end; end
Version data entries
5 entries across 5 versions & 2 rubygems