Sha256: 1999779e226c71d007bd16f0a508a214bf2973d4874c99fb4f3c83c5be9290ef

Contents?: true

Size: 419 Bytes

Versions: 7

Compression:

Stored size: 419 Bytes

Contents

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

UnitMeasurements::Length = UnitMeasurements.build do
  si_unit :m, aliases: %i[meter metre meters metres]

  unit :in, value: "25.4 mm", aliases: %i[" inch inches]
  unit :ft, value: "12 in", aliases: %i[' foot feet]
  unit :yd, value: "3 ft", aliases: %i[yard yards]
  unit :mi, value: "1760 yd", aliases: %i[mile miles]
end

Version data entries

7 entries across 7 versions & 1 rubygems

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