Guest User

Untitled

a guest
Jun 24th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. DENOMINATIONS.each_pair do |f, k|
  2. define_method("end_#{f}") {send("begin_#{f}") - k - send("business_day.spent_#{f}") - send("business_day.safe_balance.#{f}_deposits") + send("business_day.register_new_#{f}") + send("business_day.safe_balance.#{f}_withdrawals") }
  3. end
Add Comment
Please, Sign In to add comment