Classes: Month
202 203 204 205 206 207 208 209 210 211
# File 'lib/month.rb', line 202 def Month(object) case object when Month object when Integer Month(Time.at(object)) else Month.new(object.year, object.month) end end