Sha256: 37bc105a2d291fc96d4e7a73c7115bebef1c8865fff697bdbfa994947ec9ac2c
Contents?: true
Size: 418 Bytes
Versions: 1
Compression:
Stored size: 418 Bytes
Contents
# frozen_string_literal: true require_relative './support/monthly_unit' module TimeBoss class Calendar # Representation of a 12-month period within a calendar. class Year < Support::MonthlyUnit NUM_MONTHS = 12 # Get a simple representation of this year. # @return [String] (e.g. "2020") def name year_index.to_s end alias_method :title, :name end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timeboss-0.1.0 | lib/timeboss/calendar/year.rb |