Ruby __FILE__ issue | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Ruby __FILE__ issue

Ruby challenges have such statement which we need to approve or disapprove: "__FILE__ represents name of the current source file". Lately, the "correct" answer seems to go random between true and false. I tested it in a playground and it clearly outputs the working directory. Am i right? Fix this plz. https://code.sololearn.com/cElwI9fgMFc0/?ref=app

11th Feb 2018, 3:55 AM
Dead Spez
Dead Spez - avatar
3 Answers
+ 7
If the correct answer is switching between true or false. There is possibility that there two similar quizzes. if you feel the quiz is wrong after verifying for correct answer. you can report the quiz while going back to your completed challenge(atleast on the android app)
11th Feb 2018, 4:03 AM
Lord Krishna
Lord Krishna - avatar
+ 5
You must read the question. In Ruby's challenges there are two similar questions: __FILE__ represents the name of the current file: true __FILE__ represents the path of the current file: false
11th Feb 2018, 6:00 AM
Mickel
Mickel - avatar
+ 1
Thanks
11th Feb 2018, 4:16 AM
Dead Spez
Dead Spez - avatar