Sha256: bd96058c79b243d469645da73eb73d4d5aca3d356e86b4b723d351b2a585d970

Contents?: true

Size: 773 Bytes

Versions: 1

Compression:

Stored size: 773 Bytes

Contents

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

UnitMeasurements::Area = UnitMeasurements.build do
  base "m²", aliases: ["m^2", "sq m", "square meter", "square meters", "square metre", "square metres"]

  unit "km²", value: "1e+6 m²", aliases: ["km^2", "sq km", "square kilometer", "square kilometers", "square kilometre", "square kilometres"]
  unit "in²", value: "0.00064516 m²", aliases: ["in^2", "sq in", "square inch", "square inches"]
  unit "ft²", value: "144 in²", aliases: ["ft^2", "sq ft", "square foot", "square feet"]
  unit "yd²", value: "9 ft²", aliases: ["yd^2", "sq yd", "square yard", "square yards"]
  unit "mi²", value: "3097600 yd²", aliases: ["mi^2", "sq mi", "square mile", "square miles"]
end

Version data entries

1 entries across 1 versions & 1 rubygems

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