Difference between load and require

Hi,

Can any one explain me in clear, what is the difference between load and
require.

Thanks.

Ratnavel S. wrote:

Hi,

Can any one explain me in clear, what is the difference between load and
require.

Thanks.

To my knowledge,

‘require’ will load the file only once even if it is called many times.

But ‘load’ will load the file whenever it is called.

  • Karthik.

Here is the screencast on Require Vs Load in Ruby :
http://www.rubyplus.org/episodes/8

On Dec 25, 2007 11:09 PM, Ratnavel S. <
[email protected]> wrote:

Hi,

Can any one explain me in clear, what is the difference between load and
require.

Thanks.


http://www.rubyplus.org/
Free Ruby and Rails Screencasts

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs