class Gems::Version
A version of a gem, as returned by the versions, downloads, and API v2 endpoints @api public
Public Instance Methods
The number, as the ‘Gem::Version` RubyGems orders versions by
This is what {Ordering#<=>} orders a version by, read from the ‘number` the versions endpoints answer with.
@api public @return [::Gem::Version, nil] the number, or nil when the version carries no number, or one RubyGems cannot
read
@example Read the number as a Gem::Version
version.gem_version # => Gem::Version.new("7.0.6")
# File lib/gems/version.rb, line 218 def gem_version gem_version_of(number) end