NAME
Parse::Constructor::Arguments - Parse Moose constructor arguments using PPI
VERSION
version 0.091570
DESCRIPTION Parse::Constructor::Arguments parses Moose-style constructor arguments into a usable data structure using PPI to accomplish the task. It exports nothing and the only public method is a class method: parse.
METHODS
parse(ClassName $class: Str $str)
This is a class method used for parsing constructor arguments. It takes a string that will be used as the basis of the PPI::Document. Returns a hashref where the keys are the named arguments and the values are the actual values to those named arguments. (eg. q|foo => ['bar']| returns { foo => ['bar'] })
AUTHOR
Nicholas Perez <nperez@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2009 by Nicholas Perez.
This is free software; you can redistribute it and/or modify it under the same terms as perl itself.