[ruby-talk:02405] Re: Marshal: Want string out, but want depth specified?

From: Quinn Dunkan <quinn@...>
Date: 2000-04-08 18:38:14 UTC
List: ruby-talk #2405
> |@encoded = [Marshal.dump(@decoded, depth)].pack("m")
> |
> |doesn't work, the second param needs to be type IO
> 
> Hmm, I designed this to work.  And works fine on my box.  The only
> limitation I can think of is depth must be a Fixnum.

So, when are we going to get keyword args in ruby? :)
@encoded = [Marshal.dump(@decoded, depth:depth)].pack('m')

In This Thread