Examveda

What does the __FILE__ constant represent in Ruby?

A. The name of the script being executed

B. The name of the directory containing the current file

C. The name of the current file being executed

D. The current line number in the source file

Answer: Option C


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby