Created
December 23, 2016 00:50
-
-
Save wewert/def9ffc1061519340c9a3248b260999c to your computer and use it in GitHub Desktop.
Wizard Bank
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 require 'pry'¬ | |
2 ¬ | |
3 class Person¬ | |
4 ¬ | |
5 def initialize¬ | |
6 person.Person.new¬ | |
7 end¬ | |
8 ¬ | |
9 def person(name)¬ | |
10 @person = person¬ | |
11 end¬ | |
12 ¬ | |
13 def currency(galleon)¬ | |
14 @currency = currency¬ | |
15 end¬ | |
16 binding.pry¬ | |
17 end¬ | |
18 ¬ | |
19 class Bank¬ | |
20 attr_reader :bank_name¬ | |
21 def initialize¬ | |
22 bank = Bank.new¬ | |
23 end¬ | |
24 ¬ | |
25 def bank_name(name)¬ | |
26 @bank_name = bank_name¬ | |
27 end¬ | |
28 ¬ | |
29 def open_account(account)¬ | |
30 @open_account = account¬ | |
31 end¬ | |
32 ¬ | |
33 def deposit(account, deposit)¬ | |
34 @account = account¬ | |
35 @deposit = deposit¬ | |
36 end¬ | |
37 ¬ | |
38 def account_info(balance, cash)¬ | |
39 @balance = balance¬ | |
40 @cash = cash¬ | |
41 end¬ | |
42 ¬ | |
wizarding.rb [+] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment