Sha256: 2367dc759099e68f292787ed1092fc35bef2aa4e1df519c055694b3f75dd521c

Contents?: true

Size: 180 Bytes

Versions: 7

Compression:

Stored size: 180 Bytes

Contents

# frozen_string_literal: true

module Expire
  # A mixin to get the right numerus of #unit
  module NumerusUnit
    def numerus_unit
      unit.pluralize(amount)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
expire-0.2.6 lib/expire/numerus_unit.rb
expire-0.2.5 lib/expire/numerus_unit.rb
expire-0.2.4 lib/expire/numerus_unit.rb
expire-0.2.3 lib/expire/numerus_unit.rb
expire-0.2.2 lib/expire/numerus_unit.rb
expire-0.2.1 lib/expire/numerus_unit.rb
expire-0.2.0 lib/expire/numerus_unit.rb