class TaintedLove::Validator::Ignore

Attributes

trace_hashes[RW]

Public Instance Methods

remove?(warning) click to toggle source
# File lib/tainted_love/validator/ignore.rb, line 12
def remove?(warning)
  hash = warning.stack_trace.trace_hash

  Ignore.trace_hashes.any? do |s|
    hash.start_with?(s)
  end
end