Sha256: ac10b6e7f318cce04a46d197c9004ee14ac78f5c174fa3159072d490650d3b87
Contents?: true
Size: 671 Bytes
Versions: 21
Compression:
Stored size: 671 Bytes
Contents
class Date def start_of_frequency(freq) case freq.to_sym when :daily then self when :weekly then self.beginning_of_week when :monthly then self.beginning_of_month when :quarterly then self.beginning_of_quarter when :annual then self.beginning_of_year when :annually then self.beginning_of_year end end def end_of_frequency(freq) case freq.to_sym when :daily then self when :weekly then self.end_of_week when :monthly then self.end_of_month when :quarterly then self.end_of_quarter when :annual then self.end_of_year when :annually then self.end_of_year end end end
Version data entries
21 entries across 21 versions & 1 rubygems