Sha256: eb3eda86195f3c745aa56cbbaeccc6a39664e3db4ed27aabff301886b047dd30

Contents?: true

Size: 261 Bytes

Versions: 6

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

require_relative "collection_preset"

module RussianWorkdays
  class Year < CollectionPreset
    def initialize(year = Date.today.year)
      @dates = Collection.new(Date.new(year, 1, 1)..Date.new(year, 12, -1))
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
russian_workdays-2.6.0 lib/russian_workdays/year.rb
russian_workdays-2.5.0 lib/russian_workdays/year.rb
russian_workdays-2.4.0 lib/russian_workdays/year.rb
russian_workdays-2.3.0 lib/russian_workdays/year.rb
russian_workdays-2.1.0 lib/russian_workdays/year.rb
russian_workdays-2.0.0 lib/russian_workdays/year.rb