class MotionWiretap::WiretapFilter
Public Class Methods
new(parent, filter)
click to toggle source
Calls superclass method
MotionWiretap::WiretapChild::new
# File lib/motion-wiretap/all/wiretap.rb, line 352 def initialize(parent, filter) @filter = filter super(parent) end
Public Instance Methods
trigger_changed(*values)
click to toggle source
passes the values through the filter before passing up to the parent implementation
# File lib/motion-wiretap/all/wiretap.rb, line 359 def trigger_changed(*values) if @filter.call(*values) Wiretap.instance_method(:trigger_changed).bind(self).call(*values) # super end end