From: Ondrej Bilka Date: 2006-12-13T19:30:45+09:00 Subject: Re: [ ruby-Bugs-7045 ] Bigdecimal isn't comparable On Mon, Dec 04, 2006 at 09:03:08PM +0100, Arnaud Bergeron wrote: > On 12/4/06, noreply@rubyforge.org wrote: > >Bugs item #7045, was opened at 2006-12-04 19:20 > >You can respond by visiting: > >http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7045&group_id=426 > > > >Category: Standard Library > >Group: 1.8.5 > >Status: Open > >Resolution: None > >Priority: 3 > >Submitted By: Ondrej Bilka (eirik) > >Assigned to: Nobody (None) > >Summary: Bigdecimal isn't comparable > > > >Initial Comment: > >irb(main):001:0> require 'bigdecimal' > >=> true > >irb(main):002:0> RUBY_VERSION > >=> "1.8.5" > >irb(main):003:0> BigDecimal.is_a? Comparable > >=> false > >Quite unexpected > > > >---------------------------------------------------------------------- > > > >You can respond by visiting: > >http://rubyforge.org/tracker/?func=detail&atid=1698&aid=7045&group_id=426 > > > > The class itself is not Comparable, this is expected. But istances of > this class are Comparable: No its unexpected. irb(main):002:0> Numeric>BigDecimal => true > > irb(main):007:0> BigDecimal.new("1").is_a? Comparable > => true > > -- > I'm trying to launch the internet; so I open a terminal and go > "percent sign 'Internet'" at the prompt and it doesn't work. What > gives??!! -- random troll