Sha256: da8055f20335212ae90af1f1b8718b9a463cfc087c2d937fd13a362558304219
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
# frozen_string_literal: true require_relative 'term' module UKAcademicCalendar # Concrete class allowing instantiation of instances of an Autumn term, for a given academic year class AutumnTerm < Term # @return [Date] Sep 1st def nominal_start_date Date.today.beginning_of_academic_year.change(year: academic_year) end # @return [Date] Dec 31st def nominal_end_date nominal_start_date.end_of_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/autumn_term.rb |