summaryrefslogtreecommitdiff
path: root/devel/p5-MooseX-ConfigFromFile
AgeCommit message (Collapse)AuthorFilesLines
2009-09-24Bumping revision of packages which depend direct or indirect onsno1-1/+2
devel/p5-Class-MOP. A late detected incompible change forced it.
2009-09-22Importing package devel/p5-MooseX-ConfigFromFile for p5 modulesno3-0/+39
MooseX::ConfigFromFile v0.02 from PR pkg/42025 with some modifications. This is an abstract role which provides an alternate constructor for creating objects using parameters passed in from a configuration file. The actual implementation of reading the configuration file is left to concrete subroles. It declares an attribute configfile and a class method new_with_config, and requires that concrete roles derived from it implement the class method get_config_from_file. Attributes specified directly as arguments to new_with_config supercede those in the configfile.