Class: Volay::Widget::Events

Inherits:
Object
  • Object
show all
Defined in:
lib/volay/widget/events.rb

Overview

Events class

Direct Known Subclasses

SystemTray, VolumeControl

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app) ⇒ Events

Initialize signals events



12
13
14
15
16
17
18
19
# File 'lib/volay/widget/events.rb', line 12

def initialize(app)
  @app = app

  methods.each do |name|
    next unless name.match(/^on_/)
    @app.signals_list[name.to_s] = method(name)
  end
end

Instance Attribute Details

#appObject (readonly)

Returns the value of attribute app.



7
8
9
# File 'lib/volay/widget/events.rb', line 7

def app
  @app
end