class OfflineSort::Chunk::InputOutput::Marshal

Public Instance Methods

read_entry() click to toggle source
# File lib/offline_sort/chunk/input_output/marshal.rb, line 7
def read_entry
  ::Marshal.load(io) # rubocop:disable Security/MarshalLoad, this is loading from a trusted source
end
write_entry(entry) click to toggle source
# File lib/offline_sort/chunk/input_output/marshal.rb, line 11
def write_entry(entry)
  io.write(::Marshal.dump(entry))
end