Sha256: d4121fb0546e72bec4478ef8e6014477b427e03ec9cf2c01371923320917f70b

Contents?: true

Size: 795 Bytes

Versions: 5

Compression:

Stored size: 795 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

5 entries across 5 versions & 1 rubygems

Version Path
unit_measurements-2.6.2 lib/unit_measurements/unit_groups/area.rb
unit_measurements-2.6.0 lib/unit_measurements/unit_groups/area.rb
unit_measurements-2.5.0 lib/unit_measurements/unit_groups/area.rb
unit_measurements-2.4.0 lib/unit_measurements/unit_groups/area.rb
unit_measurements-2.3.0 lib/unit_measurements/unit_groups/area.rb