Method: Base#+

Defined in:
lib/convert_unit/base.rb

#+(other) ⇒ Object



22
23
24
25
# File 'lib/convert_unit/base.rb', line 22

def +(other)
  b_to_a = other.to(unit)
  self.class.new(value + b_to_a.value, unit)
end