|
From: Yvon T. <tho...@fr...> - 2006-03-12 07:13:33
|
Le 12 mars 06 =E0 01:11, Jonathan Paisley a =E9crit : > > The above is all ok and ends up with one class Foo with two methods. yes, in fact, i knew that... > > The exception you're getting (Date is not a class) comes if the =20 > name 'Date' has previously been used for another purpose, for =20 > example as a module: > > module Date > end > class Date > end #=3D> Date is not a class (TypeError) > > Can you check that this doesn't happen anywhere in your code or any =20= > library code that's getting used? i did a grep over the Resources folder, the only thing suspectable is =20= in rexml : > grep -nIrw Date * [...] ThirdParty/rexml/rexml.rb:24: Date =3D "2005/224" [...] the whole file being : module REXML Copyright =3D "Copyright =A9 2001, 2002, 2003, 2004 Sean Russell = =20 <se...@ge...>" Date =3D "2005/224" Version =3D "3.1.3" end but may be it's not a prob (i'm coming from java side) assigning a =20 string to what is supposed to be a class... nothing more when greping over the whole Contents of this app. best, Yvon= |