Method: YARD::Server::LibraryVersion#eql?

Defined in:
lib/yard/server/library_version.rb

#eql?(other) ⇒ Boolean Also known as: ==, equal?

Returns whether another LibraryVersion is equal to this one.

Returns:

  • (Boolean)

    whether another LibraryVersion is equal to this one

Since:

  • 0.6.0



153
154
155
156
# File 'lib/yard/server/library_version.rb', line 153

def eql?(other)
  other.is_a?(LibraryVersion) && other.name == name &&
    other.version == version && other.yardoc_file == yardoc_file
end