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

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

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

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

Instance Method Summary collapse

Instance Method Details

#componentsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



107
108
109
# File 'lib/reek/ast/sexp_extensions.rb', line 107

def components
  children.flat_map(&:components)
end