Sha256: 2eee12f68ca65dac47f00de2f52087538f54dc990cbfa2a49bfd1fa5414efb62

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

# frozen_string_literal: true

module HumanDuration
    SPLIT_TYPES = [[60, 'second'], [60, 'minute'], [24, 'hour'], [365, 'day'], [1000, 'year']].freeze
    SHORT_NAME_MAP = { 'second' => 's', 'minute' => 'm', 'hour' => 'h', 'day' => 'd', 'year' => 'y' }.freeze
    VALID_TYPES = ['compact', 'short', 'full'].freeze
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
human_duration-2.0.2 lib/human_duration/constants.rb