Skip to content

Instantly share code, notes, and snippets.

@sirramongabriel
Created September 5, 2013 20:31
Show Gist options
  • Select an option

  • Save sirramongabriel/6455756 to your computer and use it in GitHub Desktop.

Select an option

Save sirramongabriel/6455756 to your computer and use it in GitHub Desktop.
# banking.rb
require_relative './interact'
require_relative './account'
account = Account.new(100)
interact = Interact.new(account)
while true
interact.start_transaction
puts "-----------"
puts "Balance: #{account.balance}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment