Class: Browser::Event::Custom::Definition

Inherits:
Definition show all
Defined in:
opal/browser/event/custom.rb

Instance Method Summary collapse

Methods inherited from Definition

#bubbles=, #cancelable=

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, value) ⇒ Object



11
12
13
14
15
# File 'opal/browser/event/custom.rb', line 11

def method_missing(name, value)
  if name.end_with? ?=
    `#@native[#{name[0 .. -2]}] = value`
  end
end