Method: MoneyConvert#==
- Defined in:
- lib/money-convert/money-convert.rb
#==(other) ⇒ Object
Return true if other object and this object has same amount and currency For Example:
MoneyConvert.new(50, 'EUR') == MoneyConvert.new(50, 'EUR')
=> returns boolean
71 72 73 74 75 76 77 |
# File 'lib/money-convert/money-convert.rb', line 71 def ==(other) if amount == other.amount && currency == other.currency true else false end end |