Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Version#eql?
(untyped other) -> bool
eql?(other)
lib/rubygems/version.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/version.rb, line 268
def eql?(other)
self.class === other && @version == other.version
end
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”.
See also
#compute_sort_key
#freeze
#canonical_segments
#marshal_dump
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0