Modules and classes have a 'load' private method?

A

Asfand Yar Qazi

Hi,

If I do a 'class C; end; C.load' I get something about a private
method: huh? I've been defining loads of my own 'load' methods in my
own classes: why can't I find this fact in documentation? Is this a
problem if I do this?

Thanks,
Asfand Yar
 
F

Florian Gross

Asfand said:
If I do a 'class C; end; C.load' I get something about a private method:
huh? I've been defining loads of my own 'load' methods in my own
classes: why can't I find this fact in documentation? Is this a problem
if I do this?

It's in all objects because Object includes Kernel. See Kernel#load.

It will only be a problem if you want to use Kernel#load via the load()
name in your class which is quite unlikely.
 
A

Asfand Yar Qazi

Florian said:
It's in all objects because Object includes Kernel. See Kernel#load.

It will only be a problem if you want to use Kernel#load via the load()
name in your class which is quite unlikely.

Ah... good to know :)
 

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
473,776
Messages
2,569,603
Members
45,190
Latest member
ClayE7480

Latest Threads

Top