Top Level Namespace

Defined Under Namespace

Classes: Month

Instance Method Summary collapse

Instance Method Details

#Month(object) ⇒ Object



206
207
208
209
210
211
212
213
214
215
# File 'lib/month.rb', line 206

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