Class: Browser::Event::Custom::Definition
- Inherits:
-
Definition
- Object
- Definition
- Browser::Event::Custom::Definition
- Defined in:
- opal/browser/event/custom.rb
Instance Method Summary collapse
Methods inherited from Definition
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 |