Class: Volay::Widget::Events
- Inherits:
-
Object
- Object
- Volay::Widget::Events
- Defined in:
- lib/volay/widget/events.rb
Overview
Events class
Direct Known Subclasses
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
-
#initialize(app) ⇒ Events
constructor
Initialize signals events.
Constructor Details
#initialize(app) ⇒ Events
Initialize signals events
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/volay/widget/events.rb', line 14 def initialize(app) @app = app methods.each do |name| next unless name =~ /^on_/ @app.signals_list[name.to_s] = method(name) end init if respond_to?('init') end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
9 10 11 |
# File 'lib/volay/widget/events.rb', line 9 def app @app end |