πŸ“Š Ruby
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
πŸ’¬ Discuss
βœ… Correct Answer: (D) Returns the absolute path of the directory containing the currently executing file

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
122
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
88%
Success Rate