class GasBlender::Pressure
Public Instance Methods
+(other)
click to toggle source
# File lib/gas-blender/pressure.rb, line 15 def +(other) other = GasBlender::Pressure(other) self.class.new(magnitude + other.send(converter).magnitude) end
-(other)
click to toggle source
# File lib/gas-blender/pressure.rb, line 10 def -(other) other = GasBlender::Pressure(other) self.class.new(magnitude - other.send(converter).magnitude) end
<=>(other)
click to toggle source
# File lib/gas-blender/pressure.rb, line 5 def <=>(other) other = GasBlender::Pressure(other) magnitude.round(PRECISION) <=> other.send(converter).magnitude.round(PRECISION) end