Class: Browser::Event::Custom::Definition
- Inherits:
-
Definition
- Object
- Definition
- Browser::Event::Custom::Definition
- Defined in:
- opal/browser/event/custom.rb
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, value) ⇒ Object
13 14 15 16 17 18 19 |
# File 'opal/browser/event/custom.rb', line 13 def method_missing(name, value) if name.end_with? ?= `#@native[#{name[0 .. -2]}] = value` else super end end |