Skip to content

Instantly share code, notes, and snippets.

@cmelbye
Created December 23, 2008 23:35
Show Gist options
  • Save cmelbye/39515 to your computer and use it in GitHub Desktop.
Save cmelbye/39515 to your computer and use it in GitHub Desktop.
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