Sha256: c066915eefcb0d8fa1b64f66d4388e83a1ba31cf91d6fd8f115717502160a845
Contents?: true
Size: 349 Bytes
Versions: 132
Compression:
Stored size: 349 Bytes
Contents
# frozen_string_literal: true module Renalware class MonthPeriod attr_reader :month, :year, :start, :finish def initialize(month:, year:) @month = month @year = year @start = Time.new(year, month, 1, 0, 0, 0) @finish = start.end_of_month.end_of_day end def to_range start..finish end end end
Version data entries
132 entries across 132 versions & 1 rubygems