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.0.0/lib/rubygems/version.rb, line 275
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.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0