What is the purpose of load, auto_load, and require_relative in ruby ?
Answer / Ankush Kumar
load: Loads a Ruby file into the current runtime environment. It searches for files in $LOAD_PATH (the list of directories where Ruby looks for libraries).nauto_load: Automatically loads a Ruby file when a constant referenced within that file is first accessed.nrequire_relative: Requires the relative path to another Ruby file, and it only searches the directories in the current directory's hierarchy.
| Is This Answer Correct ? | 0 Yes | 0 No |
what is Mixin in Rails?
what is the defined operator?
What are generators in ruby on rails?
What are filters? and how many types of filters are there in ruby
Tell me what is rails migration?
What can Rails Migration do?
What is the main difference between procs and blocks?
When are self.up and self.down methods used?
In how many ways you can create rails layout http response.
What is Dynamic finders ?
Tell us what is the difference between redirect and render in ruby on rails?
what is the difference between calling super() and super call?