module RuboCop::AST::MethodIdentifierPredicates

def assignment_method?

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