Sha256: 7c4b0c1734bf83bbbe323c867dd83dfd82b0ab2c0a005cc336b39d3810ebf7de

Contents?: true

Size: 382 Bytes

Versions: 1

Compression:

Stored size: 382 Bytes

Contents

module Browser; module DOM; class Event

class DeviceLight < Event
  def self.supported?
    not $$[:DeviceLightEvent].nil?
  end

  class Definition < Definition
    def value=(value)
      `#@native.value = #{value}`
    end
  end

  def self.create(name, &block)
    new(`new DeviceLightEvent(#{name}, #{Definition.new(&block)})`)
  end

  alias_native :value
end

end; end; end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
opal-browser-0.1.0.beta1 opal/browser/dom/event/device_light.rb