search for: date_precision

Displaying 2 results from an estimated 2 matches for "date_precision".

Did you mean: data_precision
2006 Jul 21
0
[RESOLVED] Marshal.dump not dumping entire object?
...answer may be interesting for those who choose Marshal over Serialize. 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...
2006 Jul 21
0
Marshal.dump not dumping entire object?
...data = Marshal.dump(start_time) => "\004\010u:\020Runt::PDateA\004\010[\010o:\rRational\a: \017@numeratorl+\a\373C\200\322:\021@denominatori\002\240\005i\000i \003\031\025#" >> obj = Marshal.load(data) => #<Runt::PDate: 3531621371/1440,0,2299161> >> start_time.date_precision => #<Runt::DPrecision::Precision:0x2753cfc @precision=4> >> start_time.date_precision.precision => 4 >> obj.date_precision => nil as you can see - after round tripping through Marshal, date_precision isn''t restored (likely not marshalled) to obj. Is is poss...