From: Florian Frank Date: 2005-03-08T21:49:14+09:00 Subject: Re: [SOLUTION][QUIZ] Roman Numerals (#22) Dave Burt wrote: > Go and download http://www.dave.burt.id.au/ruby/roman_numerals.rb again! Nice, now Ruby has them, too, like Perl did before. Small patch here: --- roman_numerals.rb.1 Tue Mar 8 08:27:13 2005 +++ roman_numerals.rb Tue Mar 8 13:39:07 2005 @@ -135,7 +135,7 @@ else to_i = value.to_s.to_i_roman end - @@all_roman_numerals[to_i] || RomanNumeral.new(to_i) + @@all_roman_numerals[to_i] || new(to_i) end def inspect You can do funny things with those Roman numbers, BTW: >> I += 1 ; I == II (irb):1: warning: already initialized constant I => true ;) -- Florian Frank