Sha256: 26a6baee98486fb7a5590c49a7b088e2c7a3008240b69828fca595097db362c4

Contents?: true

Size: 551 Bytes

Versions: 28

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true
module Reek
  module AST
    module SexpExtensions
      # Base module for utility methods for nodes that can contain argument
      # nodes nested through :mlhs nodes.
      module NestedAssignables
        def components
          children.flat_map(&:components)
        end
      end

      # Utility methods for :args nodes.
      module ArgsNode
        include NestedAssignables
      end

      # Utility methods for :mlhs nodes.
      module MlhsNode
        include NestedAssignables
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
reek-4.6.1 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.6.0 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.6 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.5 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.4 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.3 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.2 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.1 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.5.0 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.4.2 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.4.1 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.4.0 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.3.0 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.5 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.4 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.3 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.2 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.1 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.2.0 lib/reek/ast/sexp_extensions/nested_assignables.rb
reek-4.1.1 lib/reek/ast/sexp_extensions/nested_assignables.rb