Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Version.create
(::_ToS | ::Gem::Version input) -> instance
(nil input) -> nil
create(input)
lib/rubygems/version.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/version.rb, line 187
def self.create(input)
if self === input # check yourself before you wreck yourself
input
elsif input.nil?
nil_versions_are_discouraged!
nil
else
new input
end
end