Home / Report Question

Q. How can you get the absolute path of a file in Ruby?
  • A. Using File.real_path method
  • B. Using File.expand_path method
  • C. Using File.path method
  • D. Using File.real_path method

Correct Answer: B