Ruby Programming Language Question:
Download Job Interview Questions and Answers PDF
What is the use of load and require in ruby?
Answer:
Reuire() 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() performs the inclusion operation once, it reprocesses the code every time load is called.
Load() performs the inclusion operation once, it reprocesses the code every time load is called.
Download Ruby Interview Questions And Answers
PDF
Previous Question | Next Question |
What is the use of super in Ruby Rails? | Explain the use of global variable $ in Ruby? |