class TimeBoss::Calendar::Month
Constants
- NUM_MONTHS
Public Instance Methods
name()
click to toggle source
Get a simple representation of this month. @return [String] (e.g. “2020M8”)
# File lib/timeboss/calendar/month.rb, line 12 def name "#{year_index}M#{index}" end
title()
click to toggle source
Get a “pretty” representation of this month. @return [String] (e.g. “August 2020”)
# File lib/timeboss/calendar/month.rb, line 18 def title "#{Date::MONTHNAMES[index]} #{year_index}" end