Sha256: 55bf22add30074cd15fe8c7a77caca4a22449da41872c66f9a2f7b75fa61542b

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

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

  unit :in, value: "0.0254 m", aliases: [:inch, :inches]
  unit :ft, value: "12 in", aliases: [:foot, :feet]
  unit :yd, value: "3 ft", aliases: [:yard, :yards]
  unit :mi, value: "5280 ft", aliases: [:mile, :miles]

  cache Measured::Cache::Json, "length.json"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
measured-2.5.0 lib/measured/units/length.rb