Examveda

What is the purpose of the __dir__ method in Ruby?

A. Returns the current directory path relative to the file being executed

B. Returns the name of the currently executing file

C. Returns the list of files in the current directory

D. Returns the absolute path of the directory containing the currently executing file

Answer: Option D


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

Join The Discussion

Related Questions on Advanced Topics in Ruby