Module: Reek::AST::SexpExtensions::BeginNode

Defined in:
lib/reek/ast/sexp_extensions/begin.rb

Overview

Utility methods for :begin nodes.

Instance Method Summary collapse

Instance Method Details

#statementsObject

The special type :begin exists primarily to contain more statements. Therefore, this method overrides the default implementation to return this node’s children.



11
12
13
# File 'lib/reek/ast/sexp_extensions/begin.rb', line 11

def statements
  children
end