Code simple ruby parser. Do not use existing configuration parsing libraries. Use of core and stdlib functions/objects is ok. Please build a class, one method to pull all variables and one method to pull a spicific variable. Boolean config options should return real booleans (true/false).
Config file format:
# This is a comment, ignore it
host = [url removed, login to view]
user = user
# More comments
log_file_path = /tmp/[url removed, login to view]
verbose = true
test_mode = on
8 freelancers are bidding on average $89 for this job
I have plenty of experience with parsing text in Ruby (I am currently building a prototype compiler for my own PL in Ruby...). The file format seems to be simple enough so parsing will be easy and straightforward.