Skip Menu |

This queue is for tickets about the MooseX-Configuration CPAN distribution.

Report information
The Basics
Id: 70724
Status: new
Priority: 0/
Queue: MooseX-Configuration

People
Owner: Nobody in particular
Requestors: thaljef [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.02
Fixed in: (no value)



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