Better:
```ruby
a = ->(arg){arg == 1}
b = ->(arg){arg == 2}
c = ->(arg){arg == 3}

x = 3
case x
when a then puts "a-1"
when b then puts "b-2"
when c then puts "c-3"
end
```