From 877408163a4d8725c24073784a5fee8511fdeb1e Mon Sep 17 00:00:00 2001 From: why Date: Wed, 28 Jan 2004 16:59:00 +0000 Subject: * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@5573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/yaml/rubytypes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/yaml/rubytypes.rb') diff --git a/lib/yaml/rubytypes.rb b/lib/yaml/rubytypes.rb index 0e5d5b17d6..ac772bc073 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 -- cgit v1.2.3