Class: TaintedLove::Validator::HamlEval
- Defined in:
- lib/tainted_love/validator/haml_eval.rb
Constant Summary collapse
- CALLS =
[ ['haml/attribute_compiler.rb', 'static_build'], ['haml/parser.rb', 'parse_static_hash'], ['haml/util.rb', 'block in unescape_interpolation'] ]
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#remove?(warning) ⇒ Boolean
12 13 14 15 16 17 18 19 20 21 22 |
# 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 |