there, break is not used in ruby at this place

ruby:

case var
when 1
  statmnt1
when 2
  statmnt2
else
  statmnt3
end



and there are also short forms

C:

Switch(var)
{
 case 1:
 case 2: statmnt12;
         break;

}

Ruby:

case var
when 1,2
  statmnt12
end

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