Project

General

Profile

Feature #7631

bug report

Added by dvrmdmr (demir demir) almost 7 years ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[<unknown>:<unknown>]

Description

I saw a bug my source : http://www.getexbackways.com

History

#1

Updated by dvrmdmr (demir demir) almost 7 years ago

If marshal_dump method is defined in a class and you pass an instance of that class into Marshal.dump, instead of dumping instance variables (as it happens by default, when marshal_dump is not defined) Ruby dumps only data returned from this method.

Though, if the class is a Struct, MRI 1.8.7 behaves the same way as for a regular class, but both MRI 1.9.3 and MRI 2.0.0 in addition to the data returned from marshal_dump method automatically dump instance variables of the object.

#2

Updated by hsbt (Hiroshi SHIBATA) almost 6 years ago

  • Tracker changed from Bug to Feature
  • Project changed from Customized version of Redmine to Backport187
#3

Updated by jeremyevans0 (Jeremy Evans) 4 months ago

  • Status changed from Open to Closed

Also available in: Atom PDF