Sha256: 3dbd647518d0da7efef94e285cd0bf8d15bd4786e995ce961e052b3d65753477
Contents?: true
Size: 457 Bytes
Versions: 2
Compression:
Stored size: 457 Bytes
Contents
# frozen_string_literal: true require_relative '../calendar' module TimeBoss module Calendars class Gregorian < Calendar def initialize super(basis: Basis) end private class Basis < Calendar::Support::MonthBasis def start_date @_start_date ||= Date.civil(year, month, 1) end def end_date @_end_date ||= Date.civil(year, month, -1) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
timeboss-0.2.1 | lib/timeboss/calendars/gregorian.rb |
timeboss-0.2.0 | lib/timeboss/calendars/gregorian.rb |