Use nested keys in ConfigParser
Reported by bahuvrihi | December 12th, 2008 @ 11:09 AM
ConfigParser should get away from the nested, string-based keys that it currently uses. No reason not to have a setup_nested block for nested attributes.
def setup_nested
(config[nest] ||= {})[key] = value
end
This is really essential to get away from the current reliance on IndifferentAccess and ConfigParser.nest.
Comments and changes to this ticket
-
bahuvrihi February 9th, 2009 @ 02:07 PM
What's more, the nested_config method is pretty confusing to use... and easy to miss.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Class configurations that map to the command line.