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-5.1.1 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.1.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-5.0.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.12.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.11.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.4.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.3.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.2.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.1.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-4.0.0 lib/unit_measurements/unit_groups/quantity.rb