Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::SafeMarshal::Reader#read_header
read_header
lib/rubygems/safe_marshal/reader.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/safe_marshal/reader.rb, line 45
def read_header
v = @io.read(2)
raise UnsupportedVersionError, "Unsupported marshal version #{v.bytes.map(&:ord).join(".")}, expected #{Marshal::MAJOR_VERSION}.#{Marshal::MINOR_VERSION}" unless v == MARSHAL_VERSION
end
No documentation available
See also
#read_hash_with_default_value
#read_integer
#read_hash
#read_module
also in
4.1 · 4.0 · 3.3