class Object

Public Instance Methods

Month(object) click to toggle source
# 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