|
From: Jonathan P. <jp...@dc...> - 2006-03-12 00:11:45
|
>>
>> format.rb line 6 being :
>> class Date
>>
>> date.rb line 197 :
>> require 'date/format'
>
> i think their is a prob here because at line 392 of date.rb you see :
>
> class Date
>
> then two class Date are defined and interrelated ???
That's ok, since in ruby classes are open, so you can redefine them
later. e.g.
class Foo
def method1
end
end
class Foo
def method2
end
end
The above is all ok and ends up with one class Foo with two methods.
The exception you're getting (Date is not a class) comes if the name
'Date' has previously been used for another purpose, for example as a
module:
module Date
end
class Date
end #=> Date is not a class (TypeError)
Can you check that this doesn't happen anywhere in your code or any
library code that's getting used?
|