Sha256: 283bdb7ea709b65cd142b948722f72fc126d876377fd1846bafce73f5391e012

Contents?: true

Size: 507 Bytes

Versions: 10

Compression:

Stored size: 507 Bytes

Contents

# -*- encoding: utf-8 -*-
# -*- frozen_string_literal: true -*-
# -*- warn_indent: true -*-

UnitMeasurements::Quantity = UnitMeasurements.build do
  unit :pc, aliases: [:pcs, :piece, :pieces]

  unit :pr, value: "2 pc", aliases: [:pair, :pairs]
  unit :dz, value: "6 pr", aliases: [:doz, :dozen, :dozens]
  unit :gr, value: "12 doz", aliases: [:gross, :grosses]
  unit :gg, value: "12 gr", aliases: [:"great gross", :"great grosses", :"grand gross", :"grand grosses", :"dozen gross", :"dozen grosses"]
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
unit_measurements-3.8.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.7.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.6.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.5.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.4.1 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.3.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.4.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.2.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.1.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-3.0.0 lib/unit_measurements/unit_groups/quantity.rb