Sha256: fe5d0276363ae470091665d617806262a9b1f2c1b2b7605539ba7454f6d05492

Contents?: true

Size: 451 Bytes

Versions: 1

Compression:

Stored size: 451 Bytes

Contents

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unit_measurements-2.6.1 lib/unit_measurements/unit_groups/length.rb