Method: Forgejo::CommitAffectedFiles#==

Defined in:
lib/forgejo/models/commit_affected_files.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



97
98
99
100
101
102
# File 'lib/forgejo/models/commit_affected_files.rb', line 97

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      filename == o.filename &&
      status == o.status
end