Method: Date#end_of_chunk

Defined in:
lib/fat_core/date.rb

#end_of_chunk(sym) ⇒ Object



409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
# File 'lib/fat_core/date.rb', line 409

def end_of_chunk(sym)
  case sym
  when :year
    end_of_year
  when :quarter
    end_of_quarter
  when :bimonth
    end_of_bimonth
  when :month
    end_of_month
  when :semimonth
    end_of_semimonth
  when :biweek
    end_of_biweek
  when :week
    end_of_week
  when :day
    self
  else
    raise LogicError, "unknown chunk sym: '#{sym}'"
  end
end