ruby では switch の代わりにcaseってのをつかう。
>|ruby|case valuewhen "test1"print 1when "test2"print 2elseprint "others"end||<