Guest User

Untitled

a guest
Mar 7th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. User = Struct.new(:password, :additional_info)
  2. hash=Hash.new {|h,k| h[k] = User.new}
  3. list_of_user-password-pairs.each do |user, password|
  4. hash[user].password = password
  5. if user=="sepp2k"
  6. hash[user].additional_info = "The greatest person in the world."
  7. end
  8. end
Add Comment
Please, Sign In to add comment