Vidyalelo
Ruby Programming · Q27

File Input Output in Ruby

Programming · Ruby Programming · question 27

Q27

How can you get the absolute path of a file in Ruby?

A.
Using File.real_path method
B.
Using File.expand_path method
Answer
C.
Using File.path method
D.
None of the above

Answer: Option B

Solution

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