i=10case iwhen 1..9puts "not 10"when 10puts "it is 10"endoutput: "it is 10"
input="hello"case inputwhen "hello world"puts "hello world"when "hell"puts "heaven"when /hell/puts "hell inside"endoutput: "hell inside"
Post a Comment
Free web analytics, website statistics
No comments:
Post a Comment