Sha256: 33fcde93764362c3a80dd136a86a77d90cb1e6dd7cdf6feaa068ad5c90fa2574
Contents?: true
Size: 512 Bytes
Versions: 11
Compression:
Stored size: 512 Bytes
Contents
# frozen_string_literal: true require_relative './support/monthly_unit' module TimeBoss class Calendar class Month < Support::MonthlyUnit NUM_MONTHS = 1 # Get a simple representation of this month. # @return [String] (e.g. "2020M8") def name "#{year_index}M#{index}" end # Get a "pretty" representation of this month. # @return [String] (e.g. "August 2020") def title "#{Date::MONTHNAMES[index]} #{year_index}" end end end end
Version data entries
11 entries across 11 versions & 1 rubygems