presidentbeef/brakeman — pull request #122 by presidentbeef (2012-08-08 16:43:18+00:00)
Title: Convenience methods for Sexp

This patch changes (almost) all Sexp access from array-like indexing (`exp[1]`) to method calls (`exp.target`).

Not only is this easier to read and write, but the method calls also add "type checking" for the node types. For example, if `exp.method_name` will raise an exception if `exp` is not a method definition.

These changes touch a lot of code, so testing is appreciated.