What is the use of load and require in Ruby?

Questions by nancyphilips   answers by nancyphilips

Showing Answers 1 - 3 of 3 Answers

natchiar

  • Aug 17th, 2007
 

A method that loads and processes the Ruby code from a separate file, including whatever classes, modules, methods, and constants are in that file into the current scope. load is similar, but rather than performing the inclusion operation once, it reprocesses the code every time load is called.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions