| MooseX::XSAccessor::Trait::Attribute(3pm) | User Contributed Perl Documentation | MooseX::XSAccessor::Trait::Attribute(3pm) |
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 <https://github.com/tobyink/p5-moosex-xsaccessor/issues>.
MooseX::XSAccessor.
Toby Inkster <tobyink@cpan.org>.
This software is copyright (c) 2013, 2022 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.
| 2024-09-21 | perl v5.38.2 |