Sha256: ccc20ce26de6b8764c8bd3da4e3a636272eb563a7f0eb2b2de358bf243dc067e
Contents?: true
Size: 463 Bytes
Versions: 2
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true require_relative 'term' module UKAcademicCalendar # Concrete class allowing instantiation of instances of an 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
uk_academic_calendar-1.0.1 | lib/uk_academic_calendar/summer_term.rb |
uk_academic_calendar-1.0.0 | lib/uk_academic_calendar/summer_term.rb |