Subject: | Allow constructor args to be used in write_config_file() method? |
Hi Dave-
In the documentation for write_config_file(), it reads:
An attribute value set in the constructor or by a default will not be
included in the generated file.
Is that a deliberate design decision or a limitation of Moose and/or the
implementation of MooseX::Configuration?
I want my configuration to be immutable, so all my attributes are
read-only and can only be set during construction. If I later want to
write the configuration to file, I have to jump through hoops to get or
remember the attribute values and pass them to write_config_file().
To me, it would seem perfectly natural to write a config file based on
constructor the arguments. But perhaps I'm not seeing the big picture.
Thanks for all your great work!
-Jeff