Sha256: ed64bb9db8a931b66a448a6c20b28c30c67c7e462cb8460fcd4f3e2bb6738ab8

Contents?: true

Size: 418 Bytes

Versions: 11

Compression:

Stored size: 418 Bytes

Contents

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

UnitMeasurements::Weight = UnitMeasurements.build do
  primitive "kg"

  system :metric do
    si_unit "g", aliases: ["gram", "grams", "gramme", "grammes"]

    unit "q", value: "100 kg", aliases: ["quintal", "quintals"]
    unit "t", value: "1000 kg", aliases: ["tonne", "tonnes", "metric tonne", "metric tonnes"]
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unit_measurements-4.10.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.9.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.8.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.7.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.6.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.5.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.4.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.3.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.2.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.1.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-4.0.0 lib/unit_measurements/unit_groups/weight.rb