16 May 2018 11:04:38 UTC
- Distribution: MooseX-XSAccessor
- Module version: 0.009
- Source (raw)
- Browse (raw)
- How to Contribute
- Repository (git clone)
- Issues (0)
- Testers (763 / 1 / 0)
- KwaliteeBus factor: 1
- 91.33% Coverage
- License: perl_5
- Perl: v5.8.0
- Activity24 month
- Download (43.77KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version
MooseX::XSAccessor::Trait::Attribute - get the Class::XSAccessor effect for a single attribute
package MyClass; use Moose; has foo => ( traits => ["MooseX::XSAccessor::Trait::Attribute"], ..., ); say __PACKAGE__->meta->get_attribute("foo")->accessor_is_simple;
Attributes with this trait have the following additional methods, which each return booleans:
What is meant by simple? Simple enough for Class::XSAccessor to take over the accessor's duties.
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=MooseX-XSAccessor.
Toby Inkster <firstname.lastname@example.org>.
This software is copyright (c) 2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Module Install Instructions
To install MooseX::XSAccessor, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install MooseX::XSAccessor
For more information on module installation, please visit the detailed CPAN module installation guide.