Modules and classes have a 'load' private method?

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

Asfand Yar Qazi wrote:

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.

Florian Gross wrote:

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 :slight_smile: