Top Level Namespace

Defined Under Namespace

Classes: Month

Instance Method Summary collapse

Instance Method Details

#Month(object) ⇒ Object



150
151
152
153
154
155
156
157
158
159
# File 'lib/month.rb', line 150

def Month(object)
  case object
  when Month
    object
  when Integer
    Month(Time.at(object))
  else
    Month.new(object.year, object.month)
  end
end