lib/measured/units/weight.rb in measured-2.5.0 vs lib/measured/units/weight.rb in measured-2.5.1
- old
+ new
@@ -1,4 +1,5 @@
+# frozen_string_literal: true
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]