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 | e693e176f4306ff745b409be9846279a88633675 (patch) | |
| tree | adef687820d474cdfded3db8f888857b16a70b01 /lib/yaml | |
| parent | cfd8f256bd90884af4f1fb8764c605361c3ea3b1 (diff) | |
| download | ruby-e693e176f4306ff745b409be9846279a88633675.tar.gz ruby-e693e176f4306ff745b409be9846279a88633675.tar.xz ruby-e693e176f4306ff745b409be9846279a88633675.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@6079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
| -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 3fc243710..61ade3765 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 |
