1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
def first puts "first" false end def second puts "second" true end def third puts "third" true end case when first puts "1" when second puts "2" when third puts "3" else puts "oops" end
1 2 3
first second 2