Skip to content

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

instance method

Gem::Version#marshal_dump

marshal_dump

Dump only the raw version string, not the complete object. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.

See also #freeze #marshal_load #eql? #prerelease? also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1