Updates for ConfigParser Output
-
bahuvrihi
Also, list select values and default values. This may require some updates/standarization of the setup_x methods (ie pass the default in, dope!).
Hopefully some standarization will clean up this messy block:
block = case attributes[:type] when :switch then setup_switch(key, default_value, attributes) when :flag then setup_flag(key, default_value, attributes) when :list, :list_select then setup_list(key, attributes) when :hidden then return nil else if respond_to?("setup_#{attributes[:type]}") send("setup_#{attributes[:type]}", key, default_value, attributes) else setup_option(key, attributes) end end
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.