Class: GrooveDl::Widgets::Events
- Inherits:
-
Object
- Object
- GrooveDl::Widgets::Events
- Defined in:
- lib/groove-dl/widgets/events.rb
Overview
Search section
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
-
#initialize(client, app) ⇒ Events
constructor
Initialize events for signals.
Constructor Details
#initialize(client, app) ⇒ Events
Initialize events for signals
12 13 14 15 16 17 18 19 20 |
# File 'lib/groove-dl/widgets/events.rb', line 12 def initialize(client, app) @client = client @app = app methods.each do |name| next unless name.match(/^on_/) @app.signals_list[name.to_s] = method(name) end end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
7 8 9 |
# File 'lib/groove-dl/widgets/events.rb', line 7 def app @app end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
7 8 9 |
# File 'lib/groove-dl/widgets/events.rb', line 7 def client @client end |