Project

General

Profile

Actions

Bug #6425

closed

Psych issue with !!omap

Added by trans (Thomas Sawyer) almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p125 (2012-02-16 revision 34643) [x86_64-linux]
Backport:
[ruby-core:45001]

Description

=begin

Psych doesn't seem to know ordered map. It parses fine, but loose the type when round-tripped.

a = YAML.load %{
--- !!omap
a: 1
b: 2
}
=> {"a"=>1, "b"=>2}
a.class
=> Hash
puts a.to_yaml

a: 1
b: 2

=end


Files

noname (500 Bytes) noname Anonymous, 05/14/2012 08:53 AM
noname (500 Bytes) noname Anonymous, 05/16/2012 01:23 AM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0