Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
Gem::Version#marshal_load
(::Array[::String] array) -> void
marshal_load(array)
lib/rubygems/version.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/version.rb, line 296
def marshal_load(array)
string = array[0]
raise TypeError, "wrong version string" unless string.is_a?(String)
initialize string
end
Load custom marshal format. It’s a string for backwards (RubyGems 1.3.5 and earlier) compatibility.
See also
#marshal_dump
#partition_segments
#freeze
#prerelease?
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0