diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-02 23:31:14 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-02 23:31:14 +0000 |
commit | 28b79f39570641caeea3b9464e0ac081580a91fe (patch) | |
tree | adef687820d474cdfded3db8f888857b16a70b01 /lib/yaml/rubytypes.rb | |
parent | 6ebad07ea1c03d8b9b988d0f3be18ba37e1cb42b (diff) | |
download | ruby-28b79f39570641caeea3b9464e0ac081580a91fe.tar.gz |
* ext/syck/lib/gram.c: allow root-level inline collections.
[ruby-talk:94922]
* lib/yaml/rubytypes.rb (Symbol#to_yaml): emit symbols as implicits.
[ruby-talk:94930]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml/rubytypes.rb')
-rw-r--r-- | lib/yaml/rubytypes.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yaml/rubytypes.rb b/lib/yaml/rubytypes.rb index 3fc2437104..61ade3765f 100644 --- a/lib/yaml/rubytypes.rb +++ b/lib/yaml/rubytypes.rb @@ -327,7 +327,7 @@ class Symbol end def to_yaml( opts = {} ) YAML::quick_emit( nil, opts ) { |out| - out << "!ruby/sym " + out << ":" self.id2name.to_yaml( :Emitter => out ) } end |