lib/cash_converter.rb
#this method is for arithmetic, when it catches something besides Money object, it converts it to (left side.currency) object
this method is for arithmetic, when it catches something besides Money object, it converts it to (left side.currency) object
this method is for arithmetic when it catches something besides Money object it converts it to ( left side . currency ) object
def return_instance(object)
     if object.instance_of? Money
       other = object.convert_to(self.currency)
     else
       other = Money.new(object,self.currency)
     end
    other
   end
def return_instance ( object ) if object . instance_of? Money other = object . convert_to ( self . currency ) else other = Money . new ( object , self . currency ) end other end
this method is for arithmetic, when it catches something besides Money object, it converts it to (left side.currency) object
this method is for arithmetic when it catches something besides Money object it converts it to ( left side . currency ) object
object
<not_specific>