Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

class method

Gem::Version.new

new(version)

Constructs a Version from the version string. A version string is a series of digits or ASCII letters separated by dots.