You are viewing a single comment's thread. Return to all comments →
what's the testcase 1? why doesn't the following code pass it?
case obj.class.to_s when "Hacker", "Submission", "TestCase", "Contest" puts "It's a #{obj.class.to_s}!" else puts "It's a unknown model"
Seems like cookies are disabled on this browser, please enable them to open this website
Ruby Control Structures - Case (Bonus Question)
You are viewing a single comment's thread. Return to all comments →
what's the testcase 1? why doesn't the following code pass it?