search for: marshal_load

Displaying 5 results from an estimated 5 matches for "marshal_load".

2008 May 21
1
custom serialization problem (marshal_dump, marshal_load)
Hi, I have a problem with the marshal_dump and marshal_load... I built two classes XXX, YYY and implemented both methods like this: class YYY @data = "string" @version = 1 def marshal_dump() return [@version,@data] end def marshal_load(var) @version = var[0] case @version when 1 @d...
2008 Jan 04
2
use of Marshal with wxruby classes
Is it possible to use Marshal with wxruby classes to serialize an application''s state? I tried a minimal example of simply serializing a minimal frame object, and I get the error "no marshal_dump is defined for class MinimalFrame". I don''t fully understand this because I also tried another minimal example of dumping a class which did not defined a marshal_dump, and it
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
...lize. So, to close this off I don''t know why marshal.dump wasn''t ''dumping'' all attributes, but adding custom marshaling to PDate did the trick. ala, + def marshal_dump + dumped_obj = [date_precision, ajd, sg, of] + dumped_obj + end + + def marshal_load(dumped_obj) + @date_precision, @ajd, @sg, @of = dumped_obj + end For those that use Runt, I''ve submitted a patch. cheers, Jodi ----------- Greetings, I first want to say that this problem is happening with the Runt gem. This may is likely an implementation issue between Ma...
2008 Feb 20
2
Rails Edge ActiveSupport::TimeWithZone and Marshalled objects
Hello all, I''m trying to use the new ActiveSupport::TimeWithZone from Edge. The problem seems to be that I have a several-action process to create a Booking. This Booking is stored in the session (session[:booking] = @booking) throughout the actions until the last action is reached and the record is saved to the DB. Using TimeWithZone seems to be producing errors when trying to
2006 Oct 11
5
Marshal Data too short error with ActiveRecord sess. storage
I''m seeing a "marshal data too short" error with an ActiveRecord store for my session data. Other posts say that this happens when the size of the session data exceeds the size of the "data" column in the sessions table. But my "data" column is a TEXT field so it seems unlikely that I could have blown it out. Has anyone else seen "marshal data too