Project

General

Profile

Actions

Feature #8382

closed

Format OpenStruct YAML dump and create getters and setters after load.

Added by pietro (Pietro Monteiro) over 11 years ago. Updated about 4 years ago.

Status:
Closed
Target version:
-
[ruby-core:54860]

Description

=begin
Currently Open Struct doesn't format it's YAML output exposing ((|@table|)). It also doesn't create setters and getter like (({#marshal_load})). This patch does both.
=end


Files

ostruct_yaml.patch (1.98 KB) ostruct_yaml.patch pietro (Pietro Monteiro), 05/08/2013 01:07 PM

Updated by marcandre (Marc-Andre Lafortune) over 11 years ago

  • Category set to lib
  • Assignee set to marcandre (Marc-Andre Lafortune)

Interesting feature request.

This reasoning would also apply to all stdlib classes, like Set, Matrix, ... right?

I'm not sure it's a big issue, but a patch like this would make yaml serialization both backwards and forwards incompatible. It would be easy to make it at least backwards compatible.

Actions #2

Updated by hsbt (Hiroshi SHIBATA) over 6 years ago

  • Status changed from Open to Assigned

Updated by marcandre (Marc-Andre Lafortune) about 4 years ago

  • Status changed from Assigned to Closed

This has (finally) been fixed, thanks for opening the issue.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0