I don't understand what is wrong in my code, someone can help me ?
I have to do :
Add two private methods to your Account class, pin and pin_error.
pin should take no arguments and set an instance variable, @pin, equal to the PIN number 1234.
pin_error should take no arguments and should simply return the string "Access denied: incorrect PIN."
I have written :
1 class Account
2 attr_reader :name
3 attr_reader :balance
4 def initialize(name, balance=100)
5 @name = name
6 @balance = balance
9 def pin
10 @pin = 1234
13 def pin_error
14 return "Access denied: incorrect PIN."
and it says me :
(ruby):14: syntax error, unexpected $end, expecting keyword_end
Oops, try again. Your code doesn't look quite right. Feel free to peek back at the code in the first exercise if you need help!
Thank you for your help!!