Can anyone help me to write the following codes in ruby?

Switch(var)
{
 case 1: statmnt1;
         break;
 case 2: statmnt2;
         break;
       :
       :
 default:statmnt3;
         break;
}

-- 
Posted via http://www.ruby-forum.com/.