Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class User
- def initialize
- @user = "dan"
- @password = "sekret"
- end
- end
- class Session
- def initialize(user, password)
- @user = user
- @password = password
- end
- end
- session = Session.new("dan", "sekret")
- user = User.new
- if session.user == user.user && session.password == user.password
- login
- else
- fail
- end
Add Comment
Please, Sign In to add comment