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