inheritance question

G

Guilherme

# 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,283
Messages
2,571,405
Members
48,100
Latest member
Calfin5299

Latest Threads

Top