Sha256: e0c2b37b5ff2dac897df28f1e4ecd68fb3919588b427a3d7779a5da29f64306d
Contents?: true
Size: 430 Bytes
Versions: 1
Compression:
Stored size: 430 Bytes
Contents
# frozen_string_literal: true require_relative 'term' module UKAcademicCalendar # Concrete class allowing instantiation of instances of a spring term, for a given academic year class SpringTerm < Term # @return [Date] Jan 1st def nominal_start_date nominal_end_date.beginning_of_year end # @return [Date] Easter Sunday def nominal_end_date Easter.easter(academic_year + 1) 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/spring_term.rb |