Guest User

Untitled

a guest
Feb 21st, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Configuration
  2. def initialize( file = 'config.yaml' )
  3. p file
  4. @config = YAML.load_file( file )
  5. end
  6.  
  7. def is_admin?(nick, host)
  8. p nick
  9. p host
  10. for person in @config
  11. p person['nick']
  12. p person['host']
  13. if person['nick'] == nick && person['host'] == host
  14. p 'test'
  15. true
  16. end
  17. end
  18. false
  19. end
  20. end
Add Comment
Please, Sign In to add comment