Class: TaintedLove::Validator::RackBuilderEval

Inherits:
Base
  • Object
show all
Defined in:
lib/tainted_love/validator/rack_builder_eval.rb

Instance Method Summary collapse

Methods inherited from Base

validators

Instance Method Details

#remove?(warning) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
9
10
11
12
# 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