Sha256: 056845549c2686ce4ef8be1ba4d89de0e2c61b526a2d44714abc60e3bcbe232e

Contents?: true

Size: 290 Bytes

Versions: 2

Compression:

Stored size: 290 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
human_duration-2.0.1 lib/human_duration/constants.rb
human_duration-2.0.0 lib/human_duration/constants.rb