Vidyalelo
Ruby Programming · Q30

Advanced Topics in Ruby

Programming · Ruby Programming · question 30

Q30

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

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board