Sha256: 7aff31f046ee4a20dc5beb32da2d5b46fbdd8a305b0b242c2c4594d52870f0b4

Contents?: true

Size: 507 Bytes

Versions: 4

Compression:

Stored size: 507 Bytes

Contents

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

UnitMeasurements::Quantity = UnitMeasurements.build do
  base :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

4 entries across 4 versions & 1 rubygems

Version Path
unit_measurements-2.6.2 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-2.6.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-2.5.0 lib/unit_measurements/unit_groups/quantity.rb
unit_measurements-2.4.0 lib/unit_measurements/unit_groups/quantity.rb