class GasBlender::Bar

Public Instance Methods

converter() click to toggle source
# File lib/gas-blender/pressure.rb, line 26
def converter
  :to_bar
end
to_bar() click to toggle source
# File lib/gas-blender/pressure.rb, line 30
def to_bar
  self
end
to_psi() click to toggle source
# File lib/gas-blender/pressure.rb, line 34
def to_psi
  PSI.new(magnitude * 14.5037738)
end
to_s() click to toggle source
# File lib/gas-blender/pressure.rb, line 22
def to_s
  "%.#{PRECISION}f bar" % magnitude
end