summaryrefslogtreecommitdiffstats
path: root/lib/yaml
diff options
context:
space:
mode:
authorwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 16:59:00 +0000
committerwhy <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-01-28 16:59:00 +0000
commit26a05404c54b6e6a7197b2bea0214346bbc57ed9 (patch)
treea876dcfc037d9e67715eaefa388ab6fe8e489aee /lib/yaml
parentfa9c307fff0e24531b49972fec5268d34deda72a (diff)
downloadruby-26a05404c54b6e6a7197b2bea0214346bbc57ed9.tar.gz
ruby-26a05404c54b6e6a7197b2bea0214346bbc57ed9.tar.xz
ruby-26a05404c54b6e6a7197b2bea0214346bbc57ed9.zip
* ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]
* lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306] * test/yaml/test_yaml.rb: add Time and Range tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
-rw-r--r--lib/yaml/rubytypes.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/yaml/rubytypes.rb b/lib/yaml/rubytypes.rb
index 0e5d5b17d..ac772bc07 100644
--- a/lib/yaml/rubytypes.rb
+++ b/lib/yaml/rubytypes.rb
@@ -353,7 +353,7 @@ class Range
def to_yaml( opts = {} )
YAML::quick_emit( nil, opts ) { |out|
out << "!ruby/range "
- self.inspect.to_yaml( :Emitter => out )
+ self.to_s.to_yaml( :Emitter => out )
}
end
end