Class: Qt::Base::ObserverDisconnecter
- Defined in:
- lib/rui/toolkits/qtbase/qt.rb
Instance Method Summary collapse
- #disconnect! ⇒ Object
-
#initialize(obj, observer) ⇒ ObserverDisconnecter
constructor
A new instance of ObserverDisconnecter.
Constructor Details
#initialize(obj, observer) ⇒ ObserverDisconnecter
Returns a new instance of ObserverDisconnecter.
237 238 239 240 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 237 def initialize(obj, observer) @obj = obj @observer = observer end |
Instance Method Details
#disconnect! ⇒ Object
242 243 244 |
# File 'lib/rui/toolkits/qtbase/qt.rb', line 242 def disconnect! @obj.delete_observer(@observer) end |