Sha256: 148d592d5801b44048715f917a19150b48743142bb6210a981886063e066d346

Contents?: true

Size: 623 Bytes

Versions: 4

Compression:

Stored size: 623 Bytes

Contents

Measured::Weight = Measured.build do
  si_unit :g, aliases: [:gram, :grams]

  unit :t, value: "1000 kg", aliases: [:metric_ton, :metric_tons]
  unit :slug, value: "14.593903 kg", aliases: [:slugs]
  unit :N, value: "0.10197162129779283 kg", aliases: [:newtons, :newton]
  unit :long_ton, value: "2240 lb", aliases: [:long_tons, :weight_ton, :weight_tons, 'W/T', :imperial_ton, :imperial_tons, :displacement_ton, :displacement_tons]
  unit :short_ton, value: "2000 lb", aliases: [:short_tons]
  unit :lb, value: "0.45359237 kg", aliases: [:lbs, :pound, :pounds]
  unit :oz, value: "1/16 lb", aliases: [:ounce, :ounces]
end

Version data entries

4 entries across 4 versions & 1 rubygems

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