Sha256: d3fa1bdf68c9d2e1ed5de0b4756aa25c029d408792ccc7e8cd106d9f0201e901
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
# frozen_string_literal: true require_relative './support/monthly_unit' module TimeBoss class Calendar # Representation of a single month within a 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timeboss-0.1.0 | lib/timeboss/calendar/month.rb |