Ruby case文

caseに与える値によって条件分岐できる。 case a when 100 puts “a=100 です” when 50 puts “a=50 です” else puts “aは50でも100でもあ … 続きを読む Ruby case文