Class: Mutant::AST::Meta::Generic
- Inherits:
-
Object
- Object
- Mutant::AST::Meta::Generic
- Includes:
- Adamantium
- Defined in:
- lib/mutant/ast/meta.rb
Overview
Generic node metatada
Instance Method Summary collapse
-
#assignment? ⇒ Boolean
private
Test if AST node is a valid assign target.
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
113 114 115 |
# File 'lib/mutant/ast/meta.rb', line 113 def assignment? Types::ASSIGNABLE_VARIABLES.include?(node.type) end |