Home / Programming MCQs / Ruby MCQs / Question
V
Q. Which of the following Ruby Pseudo Variables is used to return the name of the current source file?
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
What is the purpose of the File.readlines() method in Ruby?
Which command is used to list all gems installed on the system in Ruby?
How do you find the day of the week for a given Date object in Ruby?
What is the purpose of the gem owner gem_name command in Ruby?
Which Ruby convention is commonly used for naming constants?
What does the cycle method do in Ruby enumerators?
What will be the output of the following? "Eric".irreverse
What is the purpose of the parse method for parsing dates in Ruby?
Discusssion
Login to discuss.