11 lines
199 B
Ruby
11 lines
199 B
Ruby
# frozen_string_literal: true
|
|
|
|
require "date"
|
|
|
|
# Nasty monkey patching to make date objects know about the beginning of a month
|
|
class Date
|
|
def begin_of_month
|
|
Date.new(year, month, 1)
|
|
end
|
|
end
|