Class: Qt::Base::ObserverDisconnecter

Inherits:
Object
  • Object
show all
Defined in:
lib/rui/toolkits/qtbase/qt.rb

Instance Method Summary collapse

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