class TappingDevice::Trackers::PassedTracker

PassedTracker tracks calls that use the target object as an argument

Public Instance Methods

filter_condition_satisfied?(tp) click to toggle source
# File lib/tapping_device/trackers/passed_tracker.rb, line 5
def filter_condition_satisfied?(tp)
  collect_arguments(tp).values.any? do |value|
    # during comparison, Ruby might perform data type conversion like calling `to_sym` on the value
    # but not every value supports every conversion methods
    target == value rescue false
  end
rescue
  false
end