Bug #12499
Updated by nobu (Nobuyoshi Nakada) almost 8 years ago
# the following example code does not compile on Windows # if you replace "`:`" ":" with "then" it does compile # if you leave out "`then`" "then" it does not compile # The Book of Ruby - http://www.sapphiresteel.com ```ruby def showDay( i ) case( i ) when 1 : puts("It's Monday" ) when 2 : puts("It's Tuesday" ) when 3 : puts("It's Wednesday" ) when 4 : puts("It's Thursday" ) when 5 : puts("It's Friday" ) when (6..7) : puts( "Yippee! It's the weekend! " ) else puts( "That's not a real day!" ) end end for i in 1..8 do showDay( i ) end ```