Sha256: 7d5f50f34412f7fe521ea4f2e5f07495ffd807fc0fdeca8cabdfc59a21e67031

Contents?: true

Size: 343 Bytes

Versions: 7

Compression:

Stored size: 343 Bytes

Contents

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

UnitMeasurements::Weight = UnitMeasurements.build do
  si_unit :g, aliases: %i[gram grams gramme grammes]

  unit :q, value: "100 kg", aliases: %i[quintal quintals]
  unit :t, value: "10 q", aliases: %i[tonne tonnes metric\ tonne metric\ tonnes]
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unit_measurements-1.5.1 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.5.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.4.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.3.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.2.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.1.0 lib/unit_measurements/unit_groups/weight.rb
unit_measurements-1.0.0 lib/unit_measurements/unit_groups/weight.rb