class MotionWiretap::WiretapNotification
Public Class Methods
new(notification, object, block)
click to toggle source
Calls superclass method
MotionWiretap::Wiretap::new
# File lib/motion-wiretap/all/wiretap.rb, line 448 def initialize(notification, object, block) super(&block) @notification = notification @object = object NSNotificationCenter.defaultCenter.addObserver(self, selector: 'notify:', name: @notification, object: @object) end
Public Instance Methods
notify(notification)
click to toggle source
# File lib/motion-wiretap/all/wiretap.rb, line 456 def notify(notification) trigger_changed(notification.object, notification.userInfo) end
teardown()
click to toggle source
Calls superclass method
MotionWiretap::Wiretap#teardown
# File lib/motion-wiretap/all/wiretap.rb, line 460 def teardown NSNotificationCenter.defaultCenter.removeObserver(self, name: @notification, object: @object) super end