Method: Unite::Arithmetic#-

Defined in:
lib/unite/arithmetic.rb

#-(other) ⇒ Object



24
25
26
27
28
29
# File 'lib/unite/arithmetic.rb', line 24

def - other
  other = ensure_not_numeric other
  self.compatible! other
  other = other.convert_to(self) 
  self.class.new(:value => (self.value - other.value), :numerator => self.numerator, :denominator => self.denominator)
end