Sha256: c56559b1df1c43b354c45467dd37ca2a54609277517e82553107f1890daefeac

Contents?: true

Size: 265 Bytes

Versions: 5

Compression:

Stored size: 265 Bytes

Contents

Measured::Weight = Measured.build do
  unit :g, aliases: [:gram, :grams]
  unit :kg, value: "1000 g", aliases: [:kilogram, :kilograms]
  unit :lb, value: "0.45359237 kg", aliases: [:lbs, :pound, :pounds]
  unit :oz, value: "1/16 lb", aliases: [:ounce, :ounces]
end

Version data entries

5 entries across 5 versions & 1 rubygems

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