class TaintedLove::Validator::RackBuilderEval

Public Instance Methods

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

  if warning.stack_trace.lines.first[:file]['rack/builder.rb']
    return true
  end
end