Created
December 23, 2008 23:35
-
-
Save cmelbye/39515 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment