Method: Amp::Repositories::CommonVersionedFileMethods#===

Defined in:
lib/amp/repository/abstract/common_methods/versioned_file.rb

#===(other) ⇒ Boolean

Compares two versioned files - namely, their data.

Parameters:

  • other (VersionedFile)

    what to compare to

Returns:

  • (Boolean)

    true if the two are the same



27
28
29
30
# File 'lib/amp/repository/abstract/common_methods/versioned_file.rb', line 27

def ===(other)
  self.path == other.path &&
  self.data == other.data
end