From: Aaron Patterson Date: 2011-01-11T09:17:15+09:00 Subject: [ruby-core:34318] ext/bigdecimal/lib/bigdecimal/util.rb --jI8keyz6grp/JLjh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Murata! It looks like ext/bugdecimal/lib/bigdecimal/util.rb is only conditionally required by bigdecimal.c: https://github.com/ruby/ruby/blob/trunk/ext/bigdecimal/bigdecimal.c#L148-= 151 Could we possibly change this to just require 'util.rb' all the time? Then users can know what methods are available when 'bigdecimal' is required. A patch is here: https://gist.github.com/773755 Also, it looks like bigdecimal defines `to_d` on a few classes, but not itself. It would be nice if we could call `to_d` on all Numeric objects as well as BigDecimal objects. Here is another patch: https://gist.github.com/773771 What do you think? --=20 Aaron Patterson http://tenderlovemaking.com/ --jI8keyz6grp/JLjh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) iQEcBAEBAgAGBQJNK6GCAAoJEJUxcLy0/6/GA3EH/R59PdgkSFMGXqjKCThKcSKb Zp8EoEevXEu9r85xpHoe8LW+yBP/OYQCttpoIehWqBvIrJMrRSczHiAcRSd5tc3k 4f/pnxGvdocacU2hZ8JSjxzvT1+ZkGAPo7gMvX3l4LsWL3Zn+XH59SQ7M4LyQxwF LhkgG2WQhPxLmZGds30JZTVgzx+xrNUWFZzKsYocuFVZMJ0CeF2wm3r0hsnr3BVm VGS4luVFZ8niIdnbP2NP9k29HECqCK/7ar1IF9U3s5AvX+wfqLrBnM1emu+jWN9A /v4MFZ0hg8q+BG42dC8S6t0uej+wQFE2i0u80y5S7h2xj9Z1/mf7eTYyjhC6Sow= =dj7g -----END PGP SIGNATURE----- --jI8keyz6grp/JLjh--