Project

General

Profile

Actions

Bug #9873

closed

YAML conversion of empty symbol

Added by sawa (Tsuyoshi Sawada) almost 10 years ago. Updated almost 10 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.1.2
[ruby-core:62825]

Description

The yaml gem changes the empty symbol into a string of a colon:

require "yaml"
:"".to_yaml # => "--- ! ':'\n"

So, the following round trip fails to maintain the original:

YAML.load(:"".to_yaml) # => ":"
Actions

Also available in: Atom PDF

Like0
Like0