Sha256: abe5261c5415a8b6e7a2658d3bbe1da7ea35a17d4720925bc4998e4a2aeb89c6

Contents?: true

Size: 533 Bytes

Versions: 11

Compression:

Stored size: 533 Bytes

Contents

# frozen_string_literal: true

require 'date' unless defined?(Date)
require 'yaml' unless defined?(YAML)

require 'lite/ruby/helpers/date_time_helper' unless defined?(Lite::Ruby::DateTimeHelper)

class Date

  include Lite::Ruby::DateTimeHelper

  DEFAULT_STAMP = 'date_iso'
  DEFAULT_UNIT = 'year-month-day'

  STAMPS = YAML.load_file(
    File.expand_path('formats/date_stamps.yml', File.dirname(__FILE__))
  ).freeze
  UNITS = YAML.load_file(
    File.expand_path('formats/date_units.yml', File.dirname(__FILE__))
  ).freeze

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
lite-ruby-2.3.0 lib/lite/ruby/date.rb
lite-ruby-2.2.0 lib/lite/ruby/date.rb
lite-ruby-2.1.0 lib/lite/ruby/date.rb
lite-ruby-2.0.7 lib/lite/ruby/date.rb
lite-ruby-2.0.6 lib/lite/ruby/date.rb
lite-ruby-2.0.5 lib/lite/ruby/date.rb
lite-ruby-2.0.4 lib/lite/ruby/date.rb
lite-ruby-2.0.3 lib/lite/ruby/date.rb
lite-ruby-2.0.2 lib/lite/ruby/date.rb
lite-ruby-2.0.1 lib/lite/ruby/date.rb
lite-ruby-2.0.0 lib/lite/ruby/date.rb