提交 8b61957a 编写于 作者: J Justin Collins

Add Util.result?

上级 f15024d7
......@@ -125,6 +125,11 @@ module Brakeman::Util
exp.is_a? Sexp and exp.node_type == :lit and exp[1].is_a? Integer
end
#Check if _exp_ represents a result: s(:result, ...)
def result? exp
exp.is_a? Sexp and exp.node_type == :result
end
#Check if _exp_ is a params hash
def params? exp
if exp.is_a? Sexp
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册