im new to ruby but i would like to create a case block which uses arrays (or something similar as the argument)
here is what i have in mind
thirty_one_days_month = [1, 3, 5, 7, 8, 10, 12]
thirty_days_month = [4, 6, 9, 11]
case month
when thirty_one_days_month #instead of 1, 3, 5, 7, 8, 10, 12
#code
when thirty_days_month #instead 4, 6, 9, 11
#code
i know this code wont work but is this at all possible?