From: Ville Mattila Date: 2006-03-06T15:48:40+09:00 Subject: Re: [YAML] Bignum problems Joel VanderWerf writes: > > $ ruby > require 'yaml' > > class Bignum > def to_yaml( opts = {} ) > super.sub(/!ruby\/object:Bignum /, "") > end > end > > h={} > h[1] = 1000000000000000 > y h > This works fine with CVS ruby, without your special hack. So probably the cvs is way to go. irb(main):001:0> require 'yaml' => true irb(main):002:0> irb(main):003:0* h={} => {} irb(main):004:0> h[1] = 1000000000000000 => 1000000000000000 irb(main):005:0> y h --- 1: 1000000000000000 => nil