Method: Gem::Version#eql?

Defined in:
lib/rubygems/version.rb

#eql?(other) ⇒ Boolean

A Version is only eql? to another version if it’s specified to the same precision. Version “1.0” is not the same as version “1”.

Returns:

  • (Boolean)


262
263
264
# File 'lib/rubygems/version.rb', line 262

def eql?(other)
  self.class === other && @version == other.version
end