Project

General

Profile

Actions

Feature #7631

closed

bug report

Added by dvrmdmr (demir demir) about 11 years ago. Updated over 4 years ago.

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

Description

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

Actions #1

Updated by dvrmdmr (demir demir) about 11 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.

Actions #2

Updated by hsbt (Hiroshi SHIBATA) about 10 years ago

  • Tracker changed from Bug to Feature
  • Project changed from 3 to Backport187
Actions #3

Updated by jeremyevans0 (Jeremy Evans) over 4 years ago

  • Status changed from Open to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0