Sha256: c8565d9b95bdf6a0cad051b8ba370b38b7daeac81be75e21fd40012b0a897943

Contents?: true

Size: 316 Bytes

Versions: 4

Compression:

Stored size: 316 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]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
measured-2.4.0 lib/measured/units/length.rb
measured-2.3.0 lib/measured/units/length.rb
measured-2.2.0 lib/measured/units/length.rb
measured-2.1.0 lib/measured/units/length.rb