take-cheeze / mruby-marshal

mruby implementation of cruby marshaling.
12 stars 9 forks source link

Missing support for loading from IO handle #17

Closed WaveformDelta closed 7 years ago

WaveformDelta commented 7 years ago

The standard Marshal module allows you to load not just from a string but from an IO handle, so that the following should work:

File.open(filename, "rb") { |f|
  @data = Marshal.load(f)
}

The above usage isn't supported by this gem; it would be useful to have.