libmoosex-attributeshortcuts-perl

Moose extension providing shorthands for common attribute options
  https://metacpan.org/release/MooseX-AttributeShortcuts
  0
  no reviews



Ever found yourself repeatedly specifying writers and builders, because there's no good shortcut to specifying them? sometimes you want an attribute to have a read-only public interface, but a private writer. and wouldn't it be easier to just say "builder => 1" and have the attribute construct the canonical "_build_$name" builder name for you?

moosex::attributeshortcuts causes an attribute trait to be applied to all attributes defined to the using class. this trait extends the attribute option processing to handle the above variations.