Module: EventConnector::ClassMethods
- Defined in:
- lib/wx_sugar/event_connector.rb
Instance Method Summary collapse
- #event_hooks ⇒ Object
-
#method_added(name) ⇒ Object
look out for on_xxx methods being added, so they can be hooked up automatically when instances of this widget are created.
Instance Method Details
#event_hooks ⇒ Object
42 43 44 |
# File 'lib/wx_sugar/event_connector.rb', line 42 def event_hooks() @__ehooks__ ||= {} end |
#method_added(name) ⇒ Object
look out for on_xxx methods being added, so they can be hooked up automatically when instances of this widget are created
48 49 50 51 52 |
# File 'lib/wx_sugar/event_connector.rb', line 48 def method_added(name) if name.to_s =~ /^on_(.*)/ event_hooks[$1.intern] = name end end |