Method: Forgejo::ActivityPub#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



89
90
91
92
93
# File 'lib/forgejo/models/activity_pub.rb', line 89

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