Sha256: d6f753a9d06922d26132ab51205ac43736b2a3d26a45b45dd2c58257557b6c39

Contents?: true

Size: 296 Bytes

Versions: 1

Compression:

Stored size: 296 Bytes

Contents

# frozen_string_literal: true

require 'active_support/core_ext/date_and_time/calculations'

class Date
  # @return Range<Date>
  def current_week
    beginning_of_week..end_of_week
  end
end

class DateTime
  # @return Range<Date>
  def current_week
    beginning_of_week..end_of_week
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
current_week_extension-0.0.1 lib/current_week_extension.rb