I think you're right.How about something like this:
RCS file: /src/ruby/lib/yaml/rubytypes.rb,v
retrieving revision 1.16.2.9
diff -u -r1.16.2.9 rubytypes.rb
--- lib/yaml/rubytypes.rb 20 Sep 2005 06:46:45 -0000 1.16.2.9
+++ lib/yaml/rubytypes.rb 4 Oct 2005 12:43:02 -0000
@@ -368,7 +368,7 @@
end
end
-class Fixnum
+class Integer
yaml_as "tag:yaml.org,2002:int"
end
Kent.
On Tue, 2005-10-04 at 00:12 +0900, ts wrote:
> >>>>> "K" == Kent Sibilev <ksruby / gmail.com> writes:
>
> K> +class Bignum
> K> + yaml_as "tag:yaml.org,2002:int"
> K> +end
> K> +
>
> Try it :
>
> moulon% ./ruby -ryaml -e 'puts YAML.load(YAML.dump(1234567890))'
> class Fixnum held ownership of the tag:yaml.org,2002:int tag
> 1234567890
> moulon%
>
>
> perhaps best to use Integer ???
>
>
> Guy Decoux
>