What is the purpose of load in ruby?



What is the purpose of load in ruby?..

Answer / Surendra Singh Laspal

The Ruby load method is used to dynamically execute a Ruby script or string from a file. It reads and evaluates the entire contents of the specified file, which can be useful for including additional code during runtime.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Ruby on Rails Interview Questions

Explain testing in rails.

1 Answers  


Explain bundler in rails.

1 Answers  


What is ruby on rails & why it is used for?

1 Answers  


How to find second max element from database ?

1 Answers  


How many types of variables are available in ruby class?

1 Answers  


Is ruby on rails popular?

1 Answers  


What is the difference between save and save?

1 Answers  


How you run your Rails Application without creating database ?

1 Answers  


What is the difference between symbol and string?

1 Answers  


what is the purpose of RJs in Rails?

1 Answers  


What is the purpose of load, auto_load, and require_relative in ruby ?

1 Answers  


What are generators in ruby on rails?

1 Answers  


Categories