Module: Reek::AST::SexpExtensions::NestedAssignables

Included in:
ArgsNode, MlhsNode
Defined in:
lib/reek/ast/sexp_extensions/nested_assignables.rb

Overview

Base module for utility methods for nodes that can contain argument nodes nested through :mlhs nodes.

Instance Method Summary collapse

Instance Method Details

#componentsObject



9
10
11
# File 'lib/reek/ast/sexp_extensions/nested_assignables.rb', line 9

def components
  children.flat_map(&:components)
end