On Sat, Oct 25, 2003 at 06:13:25AM +0900, Daniel Bretoi wrote: > Hi, > > Does anyone know what causes this error? > > /usr/lib/ruby/1.6/dbi/dbi.rb:318: warning: method redefined; discarding > old fraction > > ruby 1.6.8 (2003-07-09) [i386-linux] > > [/usr/lib/ruby]$ grep -r "def fraction" * > 1.6/dbi/dbi.rb: def fraction() @fraction || 0 end > > > Other than the warning, the program using "require 'dbi'" executes > as expected. This warning is fixed in CVS -current. Do you see the "attr_accessor :fraction" call some lines before the definition of the fraction method in dbi.rb? It's now "attr_writer :fraction" to avoid exactly this warning. Regards, Michael