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

From: Hugh Sasse Staff Elec Eng <hgs@...>
Date: 2000-04-07 13:55:48 UTC
List: ruby-talk #2375
@encoded = [Marshal.dump(@decoded, , depth)].pack("m")

gives a syntax error,

@encoded = [Marshal.dump(@decoded, nil, depth)].pack("m")

doesn't work, the second param needs to be type IO

@encoded = [Marshal.dump(@decoded, depth)].pack("m")

doesn't work, the second param needs to be type IO

How do I miss out the second parameter to get a string, and yet specify
the depth?

	Hugh
	hgs@dmu.ac.uk



In This Thread

Prev Next