Class: QML::Signal::Connection

Inherits:
Object
  • Object
show all
Defined in:
lib/qml/signal.rb

Instance Method Summary collapse

Constructor Details

#initialize(signal, listener) ⇒ Connection

Returns a new instance of Connection.



6
7
8
9
# File 'lib/qml/signal.rb', line 6

def initialize(signal, listener)
  @signal = signal
  @listener = listener
end

Instance Method Details

#disconnectObject

Disconnects the connection.



12
13
14
# File 'lib/qml/signal.rb', line 12

def disconnect
  @signal.disconnect(@listener)
end