Simple configuration reader: Konf. There are many like it, but this one is mine.
Comments
So your example isn’t correct because it is leaving out the admin node. Also this problem has already been solved since all you are doing is converting a nested hash (the result of the yaml parsing) to an OpenStruct. Check out Why the Lucky Stiff’s answer at the end of this ruby quiz: http://rubyquiz.com/quiz81.html
Comments
So your example isn’t correct because it is leaving out the admin node. Also this problem has already been solved since all you are doing is converting a nested hash (the result of the yaml parsing) to an OpenStruct. Check out Why the Lucky Stiff’s answer at the end of this ruby quiz: http://rubyquiz.com/quiz81.html
Post a comment