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

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

Overview

Generic node metatada

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)


113
114
115
# File 'lib/mutant/ast/meta.rb', line 113

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