MooseX::XSAccessor::Trait::Attribute(3pm)

MooseX::XSAccessor::Trait::Attribute3pm

Get the class::xsaccessor effect for a single attribute

Usage

   package MyClass;
   
   use Moose;
   
   has foo => (
      traits => ["MooseX::XSAccessor::Trait::Attribute"],
      ...,
   );
   
   say __PACKAGE__->meta->get_attribute("foo")->accessor_is_simple;

Overview

Attributes with this trait have the following additional methods, which each return booleans:

"accessor_is_simple"
"reader_is_simple"
"writer_is_simple"
"predicate_is_simple"
"clearer_is_simple"

What is meant by simple? Simple enough for Class::XSAccessor to take over the accessor's duties.

Disclaimer of warranties

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.

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9
  2. 10–11
  3. 12
  4. 13

Bugs

Please report any bugs to <https://github.com/tobyink/p5-moosex-xsaccessor/issues>.

Author

Toby Inkster <[email protected]>.

From libmoosex-xsaccessor-perl 0.010-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.