Sha256: c90a4693bb6ab4bb34abc21b6b9172b87c35b050e233dac69e3c18722fd37a13

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 Bytes

Contents

# frozen_string_literal: true

require_relative 'term'

module UKAcademicCalendar
  # Concrete class allowing instantiation of instances of a Summer term, for a given academic year
  class SummerTerm < Term
    # @return [Date] the Monday after Easter Sunday
    def nominal_start_date
      Easter.easter(academic_year + 1).next_day
    end

    # @return [Date] Aug 31st
    def nominal_end_date
      nominal_start_date.end_of_academic_year
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
uk_academic_calendar-1.1.0 lib/uk_academic_calendar/summer_term.rb