hi,
i’m writing an application which needs to parse a
configuration file on
program startup. is there a prefered format for
configuration files in
ruby? is there a library for such a purpose? i suppose i
could do the
parsing myself, but i was just wondering if there is a
sophisticated way
out there.
thank you
I would consider Yaml.
Yaml is human-readable-and-writable, agreed, but only if the human is a programmer
Actually the problem is that i want configuration values segregated into different groups.
Users would find the Yaml syntax which requires indentation esoteric.
how feasible is it to use Kernel::load() ?
maybe i should let the user modify a ruby source-file, which looks kind of like this
hi,
i’m writing an application which needs to parse a
configuration file on
program startup. is there a prefered format for
configuration files in
ruby? is there a library for such a purpose? i suppose i
could do the
parsing myself, but i was just wondering if there is a
sophisticated way
out there.
thank you
I would consider Yaml.
Yaml is human-readable-and-writable, agreed, but only if the human is a
programmer
Actually the problem is that i want configuration values segregated into
different groups.
Users would find the Yaml syntax which requires indentation esoteric.
how feasible is it to use Kernel::load() ?
maybe i should let the user modify a ruby source-file, which looks kind
of like this