JuliboxTV::CommentedINI
like crystal's INI, except with the comments stored
Class methods
build(ini, space : Bool = false) : String
Generates an INI-style configuration from a given hash.
require "ini"
INI.build({"foo" => {"a" => "1"}}, true) # => "[foo]\na = 1\n\n"
parse(string_or_io : String | IO) : Hash(String, Hash(String, Value))
Parses INI-style configuration from the given string.
Raises a ParseException on any errors.
require "ini"
INI.parse("[foo]\na = 1") # => {"foo" => {"a" => "1"}}