Sha256: 96412f25b3e7a0238916f02b61091f3f4ae858def9291e5d04c1868678fd43a0

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

Measured::Length = Measured.build do
  unit :m, aliases: [:meter, :metre, :meters, :metres]
  unit :cm, value: "1/100 m", aliases: [:centimeter, :centimetre, :centimeters, :centimetres]
  unit :mm, value: "1/1000 m", aliases: [:millimeter, :millimetre, :millimeters, :millimetres]
  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]
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
measured-2.0.0 lib/measured/units/length.rb
measured-2.0.0.pre4 lib/measured/units/length.rb
measured-2.0.0.pre3 lib/measured/units/length.rb
measured-2.0.0.pre2 lib/measured/units/length.rb
measured-2.0.0.pre1 lib/measured/units/length.rb