Sha256: eda750344077566fd0afd1b2577b3562d33dc489ba6bb662978f8b68e95bd75f

Contents?: true

Size: 334 Bytes

Versions: 7

Compression:

Stored size: 334 Bytes

Contents

module TimeBoss
  class Calendar
    module Support
      # @abstract
      class MonthBasis
        attr_reader :year, :month

        def initialize(year, month)
          @year = year
          @month = month
        end

        def to_range
          @_to_range ||= start_date .. end_date
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
timeboss-0.2.5 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.2.4 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.2.3 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.2.2 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.2.1 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.2.0 lib/timeboss/calendar/support/month_basis.rb
timeboss-0.1.1 lib/timeboss/calendar/support/month_basis.rb