Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Configuration
- def initialize( file = 'config.yaml' )
- p file
- @config = YAML.load_file( file )
- end
- def is_admin?(nick, host)
- p nick
- p host
- for person in @config
- p person['nick']
- p person['host']
- if person['nick'] == nick && person['host'] == host
- p 'test'
- true
- end
- end
- false
- end
- end
Add Comment
Please, Sign In to add comment