MooseX...ribute(3pm)

πŸ“¦
version 0.010 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

πŸ’– MooseX::XSAccessor::Trait::Attribute πŸ’–

okay bestie, so this is a page from the User Contributed Perl Documentation for the MooseX...ribute(3pm) man page β€” yes the header truncates it like that, it's giving ✨abbreviated✨. The full name is MooseX::XSAccessor::Trait::Attribute and we're about to make it make sense, fr fr.


🌸 NAME 🌸

MooseX::XSAccessor::Trait::Attribute β€” it's the whole "give one single attribute that Class::XSAccessor effect" situation. Like, one attribute. Not all of them. Just the one you picked. Very main character energy, honestly πŸ‘‘


✨ SYNOPSIS ✨

here's the vibe, copied exactly because you do NOT mess with working code:

package MyClass;

use Moose;

has foo => (
   traits => ["MooseX::XSAccessor::Trait::Attribute"],
   ...,
);

say __PACKAGE__->meta->get_attribute("foo")->accessor_is_simple;

so you slap traits => ["MooseX::XSAccessor::Trait::Attribute"] onto a has, drop your Moose in, and then you can literally ask __PACKAGE__->meta->get_attribute("foo")->accessor_is_simple and it'll tell you things. obsessed 🫢


πŸ’… DESCRIPTION πŸ’…

attributes that rock this trait get some extra methods bolted on. and every single one of them returns booleans β€” like, true/false, yes/no, ate/didn't eat. that's it. that's the whole thing. here they are:

  • accessor_is_simple
  • reader_is_simple
  • writer_is_simple
  • predicate_is_simple
  • clearer_is_simple

okay but what do we even mean by "simple"?? excellent question, bestie 🧚 simple means: simple enough for Class::XSAccessor to take over the accessor's duties. that's the bar. if it clears that bar, it's simple. if it doesn't, it's not, and the boolean will let you know. no cap. πŸ’€


πŸ› BUGS πŸ›

found a bug? pls pls pls report it here, don't just suffer in silence 😭:

https://github.com/tobyink/p5-moosex-xsaccessor/issues

they wanna know. the issues page is right there. go off πŸ’œ


πŸ‘€ SEE ALSO πŸ‘€

  • MooseX::XSAccessor β€” the parent situation, go look at it next, iykyk

🌈 AUTHOR 🌈

Toby Inkster <tobyink@cpan.org> β€” king behavior, honestly πŸ‘‘


this software is copyright (c) 2013, 2022 by Toby Inkster.

it's free software πŸ“ β€” you can redistribute it and/or modify it under the very same terms as the Perl 5 programming language system itself. that's the deal, and it's a good deal.


πŸ’€ 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.

so like. it is what it is. use it, love it, but nobody's promising you anything πŸ™ˆ


and that's the whole page bestie, you're so welcome πŸ’– this was perl v5.40.1, dated 2026-02-15, and it's the MooseX...ribute(3pm) page from the User Contributed Perl Documentation. slay, go make some simple accessors βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from