2010-03-29 53 views

回答

8

評估的返回值沒有有沒有。你必須做一些事情,如:

some_object = 2+2 
case some_object 
when '2' 
    puts '2' 
else 
    puts some_object 
end 

case some_object = 2+2 
when '2' 
    puts '2' 
else 
    puts some_object 
end