lib/source_route/trace_filter.rb
def positives_check(tp)
      return true if cond.positives == {}
      cond.positives.any? do |method_key, value|
        if method_key.to_sym == :defined_class
          tp.send(method_key).name =~ Regexp.new(value)
        else
          tp.send(method_key).to_s =~ Regexp.new(value)
        end
      end
    end
def positives_check(tp)
      return true if cond.positives == {}
      cond.positives.any? do |method_key, value|
        if method_key.to_sym == :defined_class
          tp.send(method_key).name =~ Regexp.new(value)
        else
          tp.send(method_key).to_s =~ Regexp.new(value)
        end
      end
    end
def positives_check ( tp ) return true if cond . positives == { } cond . positives . any? do | method_key , value | if method_key . to_sym == :defined_class tp . send ( method_key ) . name =~ Regexp . new ( value ) else tp . send ( method_key ) . to_s =~ Regexp . new ( value ) end end end
TODO: value should defined by user? Either is string or Reg, it should defined by user?
TODO : value should defined by user? Either is string or Reg it should defined by user?