Sha256: 8cdca2031c7b586cc7b4c6b060132359cf96422e35145519b0a2a9d60cc8c817

Contents?: true

Size: 534 Bytes

Versions: 36

Compression:

Stored size: 534 Bytes

Contents

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

UnitMeasurements::Quantity = UnitMeasurements.build do
  primitive "pc"

  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

36 entries across 36 versions & 2 rubygems

Version Path
unit_measurements_us_complete-5.17.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.17.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.16.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.15.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.14.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.13.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.12.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.11.1 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.11.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.10.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.9.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.8.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.7.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.6.1 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.6.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.5.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.4.1 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.4.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.3.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.2.0 lib/unit_measurements/unit_groups/quantity.rb