class MotionWiretap::WiretapMapper
Public Class Methods
new(parent, mapper)
click to toggle source
Calls superclass method
MotionWiretap::WiretapChild::new
# File lib/motion-wiretap/all/wiretap.rb, line 401 def initialize(parent, mapper) @mapper = mapper super(parent) end
Public Instance Methods
trigger_changed(*values)
click to toggle source
passes the values through the mapper before passing up to the parent implementation
# File lib/motion-wiretap/all/wiretap.rb, line 408 def trigger_changed(*values) Wiretap.instance_method(:trigger_changed).bind(self).call(*values.map { |value| @mapper.call(value) }) end