class RussianWorkdays::Month
Public Class Methods
new(year = Date.today.year, month = 1)
click to toggle source
# File lib/russian_workdays/month.rb, line 7 def initialize(year = Date.today.year, month = 1) raise ArgumentError, "Must be a number between 1 and 12" unless (1..12).include?(month) @dates = Collection.new(Date.new(year, month, 1)..Date.new(year, month, -1)) end