NAME
Pod::Coverage::More::Declared::MOP - Declarations of the attributes of Moose, Mouse and Moo classes
VERSION
version 0.001
DESCRIPTION
Reads the metaclass of a class that Moose, Mouse or Moo built. A Moo class is read through the Moose metaclass that Moo inflates for it, so reading one loads Moose.
Each attribute declares its accessors, its predicate and its clearer, with the attribute's type constraint, and a named parameter of the constructor new, unless its init_arg is undef. A method that a method modifier wraps declares the original method as its body.
METHODS
applies_to(package)
Whether Moose, Mouse or Moo built package.
Returns Bool.
next if !Pod::Coverage::More::Declared::MOP->applies_to('Some::Class');
declarations(package, names)
The declarations of the subs of package that names lists, as Pod::Coverage::More::Declared describes them.
Returns HashRef, from the name of each declared sub to its declaration.
my $declared = Pod::Coverage::More::Declared::MOP->declarations( 'Some::Class', ['new'] );
SEE ALSO
Please see those modules/websites for more information related to this module.
BUGS
Please report any bugs or feature requests on the bugtracker website https://github.com/teodesian/Pod-Coverage-More/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
AUTHORS
Current Maintainers:
George S. Baugh <teodesian@cpan.org>
COPYRIGHT AND LICENSE
Copyright (c) 2014-2026 George S. Baugh
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.