class TaintedLove::Validator::HamlEval

Constants

CALLS

Public Instance Methods

remove?(warning) click to toggle source
# File lib/tainted_love/validator/haml_eval.rb, line 12
def remove?(warning)
  return unless warning.replacer == :ReplaceKernel

  line = warning.stack_trace_line

  return unless line[:file]['gems/haml']

  CALLS.any? do |file, method|
    line[:method] == method && line[:file][file]
  end
end