Sha256: 5f1b8328e6ba194993a43b4bbd86f7388eaaf7cef72edd2638c4248b0d91493f

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

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

UnitMeasurements::Weight = UnitMeasurements.build do
  system :metric do
    primitive :kg

    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

7 entries across 7 versions & 1 rubygems

Version Path
unit_measurements-3.8.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.7.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.6.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.5.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.4.1 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.3.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-3.4.0 lib/unit_measurements/unit_groups/weight.rb