Quotes help make search much faster. Example: "Practice Makes Perfect"

Wednesday, January 23, 2013

Private Affairs



#Codecademy sample solution

class Account
    attr_reader :name
    attr_reader :balance

def initialize(name, balance=100)
@name = name
@balance = balance
end

private

def pin
@pin = 1234
end

def pin_error
return "Access denied: incorrect PIN."
end
end

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts