Method: Mutant::AST::Meta::Send#attribute_assignment?
- Defined in:
- lib/mutant/ast/meta/send.rb
#attribute_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 attribute assignment
35 36 37 |
# File 'lib/mutant/ast/meta/send.rb', line 35 def attribute_assignment? !Types::METHOD_OPERATORS.include?(selector) && selector.end_with?(ATTRIBUTE_ASSIGNMENT_SELECTOR_SUFFIX) end |