Class: Mutant::AST::Meta::Generic

Inherits:
Object
  • Object
show all
Includes:
Adamantium
Defined in:
lib/mutant/ast/meta.rb

Overview

Generic node metadata

Instance Method Summary collapse

Instance Method Details

#assignment?Boolean

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.

Test if AST node is a valid assign target

Returns:

  • (Boolean)


141
142
143
# File 'lib/mutant/ast/meta.rb', line 141

def assignment?
  Types::ASSIGNABLE_VARIABLES.include?(node.type)
end