DOKK / manpages / debian 12 / libmoosex-semiaffordanceaccessor-perl / MooseX::SemiAffordanceAccessor::Role::Attribute.3pm.en
MooseX::SemiAffordanceAccessor::Role::Attribute(3pm) User Contributed Perl Documentation MooseX::SemiAffordanceAccessor::Role::Attribute(3pm)

MooseX::SemiAffordanceAccessor::Role::Attribute - This meta trait is applied to attributes in order to change writer names

version 0.10

This role applies a method modifier to the "_process_options()" method, and tweaks the reader and writer parameters so that they follow the semi-affordance naming style.

  Moose::Util::MetaRole::apply_metaclass_roles(
      for_class => $p{for_class},
      attribute_metaclass_roles =>
          ['MooseX::SemiAffordanceAccessor::Role::Attribute'],
  );

Dave Rolsky <autarch@urth.org>

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
2022-06-15 perl v5.34.0