Sha256: 49286c12ed1962a3e68248b09f7f9a09029ed322da188a321be85832577d1676

Contents?: true

Size: 465 Bytes

Versions: 1

Compression:

Stored size: 465 Bytes

Contents

# frozen_string_literal: true

module Edtf
  module Humanize
    module Language
      module Default
        module Decade
          include Edtf::Humanize::Language::Default::Formats

          extend self

          def humanizer(date)
            "#{I18n.t('edtf.terms.decade_prefix', default: '')}" \
              "#{date.begin.year}" \
              "#{I18n.t('edtf.terms.decade_suffix', default: 's')}"
          end
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
edtf-humanize-2.2.0 lib/edtf/humanize/language/default/decade.rb