control_flow/case_wildcard.rb

tests/_examples/control_flow/case_wildcard.rb in the metorex repository.

# Case statement with wildcard pattern
value = 42

case value
  when 1
    puts "one"
  when 2
    puts "two"
  when _
    puts "many"
end