class RuboCop::AST::SendNode

def assignment_method?

Returns:
  • (Boolean) - whether the invoked method is an assignment.
def assignment_method?
  !comparison_method? && method_name.to_s.end_with?('=')
end