Is there an analogous form of the following code:
if(month == 4,6,9,11) { do something; }
Or must it be:
if(month == 4 ||
For pretty much any you'll need to use the second option, but in most languages you can write something similar to
if [4,6,9,11].map{|day|==month}.inject(false){|all, elem| all|elem} do thing
or better yet
if month in [4,6,9,11]: do thing