class Gem::SafeMarshal::Reader

Public Class Methods

new (io)
# File lib/rubygems/safe_marshal/reader.rb, line 23
def initialize(io)
  @io = io
end

Public Instance Methods

read! ()
# File lib/rubygems/safe_marshal/reader.rb, line 27
def read!
  read_header
  root = read_element
  raise UnconsumedBytesError unless @io.eof?
  root
end