why doesn’t this work:
···
####################################
class Test
def foo_bar(x)
puts x
end
end
test = Test.new
puts 'guess the method:'
while gets
if test.respond_to?($_)
puts 'correct!'
exit
end
puts 'incorrect guess, please try again:'
end