Class Brakeman::FindReturnValue
In: lib/brakeman/processors/lib/find_return_value.rb
Parent: Object

Attempts to determine the return value of a method.

Preferred usage:

  Brakeman::FindReturnValue.return_value exp

Methods

Included Modules

Brakeman::Util

Public Class methods

Returns a guess at the return value of a given method or other block of code.

If multiple return values are possible, returns all values in an :or Sexp.

Public Instance methods

Searches expression for return statements.

Find return value of Sexp. Takes an optional starting environment.

Determines the "last value" of an expression.

Turns the array of return values into an :or Sexp

Process method (or, actually, any Sexp) for return value.

[Validate]