Examveda

What is the purpose of the Kernel#autoload method in Ruby?

A. It automatically loads a specified file when a constant is accessed for the first time

B. It loads all files in a directory when the program starts

C. It reloads a file every time it is accessed

D. It loads a file asynchronously to improve performance

Answer: Option A


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby