What is the use of load and require in ruby?

Answer

The ‘load’ and ‘require’ both are used for loading the available code into the current code. ‘load’ always reloads the code every time. Autoload is always sounds good and it is suggested to use ‘require’.

In the case where loading the code every time when changed or every time someone hits the URL, it is suggested to use ‘load’ which is reasonable.

All ruby Questions

Ask your interview questions on ruby

Write Your comment or Questions if you want the answers on ruby from ruby Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---