Guest User

Untitled

a guest
Mar 5th, 2018
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def check(username, password)
  2. username =~ /[^a-z]/ && password == File.read(directory+username)
  3. rescue Errno::ENOENT
  4. return false
  5. end
  6.  
  7. show_user "the friggn message" unless check(username, password)
  8.  
  9. ## old one
  10. def a(x, y, z)
  11. raise "Oops" unless x < 3 and y > 7 and z < x*y
  12. x*y*z
  13. end
Add Comment
Please, Sign In to add comment