Class: QML::Signal::Connection
- Inherits:
-
Object
- Object
- QML::Signal::Connection
- Defined in:
- lib/qml/signal.rb
Instance Method Summary collapse
-
#disconnect ⇒ Object
Disconnects the connection.
-
#initialize(signal, listener) ⇒ Connection
constructor
A new instance of Connection.
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
#disconnect ⇒ Object
Disconnects the connection.
12 13 14 |
# File 'lib/qml/signal.rb', line 12 def disconnect @signal.disconnect(@listener) end |