[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

inheritance question

Guilherme

2/12/2008 7:01:00 PM

# OK
module ProjectName
end

# I haven't defined ProjectName::Numeric. And It does not raise an
exception!!!!!
class Animal < ProjectName::Numeric
end

# The most interesting thing:
Animal.superclass # => ::Numeric

That happens for every native classes.

The problem is that my library relies on that kind of exception. I
always get that kind of misbehaviour when I use ProjectName::Numeric,
ProjectName::Integer or whatever.

I'm using ruby 1.9 + windows.

Thanks,
G