From: Joz Private Date: 2012-10-09T06:34:46+09:00 Subject: Re: Undefined method `-' for nil Sam Duncan wrote in post #1079021: > On 10/09/2012 10:22 AM, Joz Private wrote: >>>> end >>> constructor for the Bank object takes 3 values, however you are passing >> def move_loans >> going on??!! >> >> >>> Sam > It is very confusing what the code actually looks like. Do you think you > could put the whole lot up as a gist on github or some other pastebin > type bizzo? It is not clear where the 'amount' value comes from in that > method now for a start =] > > Sam Sorry, I really messed up copying the code :p The amount gets passed as in: bank.moves_loans(dev.owes_bank(bank.name)) ^^^That's what should be in Bankrupter class above! -- Posted via http://www.ruby-forum.com/.