A

Admin • 828.03K Points
Coach

Q. 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
  • Correct Answer - Option(D)
  • Views: 5
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.