Sha256: e92328de0c6f80a2ffefa28384e03240b9dc02b4a59533663c597ad802c6748d
Contents?: true
Size: 1.1 KB
Versions: 6
Compression:
Stored size: 1.1 KB
Contents
# encoding: UTF-8 Measurement.define(:'acre ft') do |unit| unit.alias :'acre-foot', :'acre-feet' unit.convert_to(:yd3) { |value| value * Rational(4840, 3).to_f } unit.convert_to(:ft3) { |value| value * 43_560.0 } unit.convert_to(:in3) { |value| value * 75_271_680.0 } end Measurement.define(:'yd³') do |unit| unit.alias :yd3, :'yd^3', :'yd*yd*yd', :'cubic yard', :'cubic yards' unit.convert_to(:'acre ft') { |value| value / Rational(4840, 3).to_f } unit.convert_to(:ft3) { |value| value * 27.0 } unit.convert_to(:in3) { |value| value * 46_656.0 } end Measurement.define(:'ft³') do |unit| unit.alias :ft3, :'ft^3', :'ft*ft*ft', :'cubic foot', :'cubic feet' unit.convert_to(:'acre ft') { |value| value / 43_560.0 } unit.convert_to(:yd3) { |value| value / 27.0 } unit.convert_to(:in3) { |value| value * 1_728.0 } end Measurement.define(:'in³') do |unit| unit.alias :in3, :'in^3', :'in*in*in', :'cubic inch', :'cubic inches' unit.convert_to(:'acre ft') { |value| value / 75_271_680.0 } unit.convert_to(:yd3) { |value| value / 46_656.0 } unit.convert_to(:ft3) { |value| value / 1_728.0 } end
Version data entries
6 entries across 6 versions & 1 rubygems