MooseX::AttributeDefaults - Role to provide default option for your attribute metaclasses River stage zero No dependents

FRODWITH/MooseX-AttributeDefaults-0.02 - 01 Oct 2008 18:53:04 UTC - Search in distribution

MooseX::AuthorizedMethods - Syntax sugar for authorized methods River stage zero No dependents

This method exports the "authorized" declarator that makes a verification if the user has the required permissions before the acual invocation. The default verification method will take the "user" method result and call "roles" to list the roles give...

DRUOSO/MooseX-AuthorizedMethods-0.006 - 25 Nov 2010 18:36:28 UTC - Search in distribution

MooseX::ConstructInstance - small wrapper method for instantiating helper objects River stage one • 1 direct dependent • 1 total dependent

Normally you would build an LWP::UserAgent something like this: sub _build_ua { my $self = shift; LWP::UserAgent->new(...); } Following the principles of dependency injection, you may prefer not to hard-code the class name (see also MooseX::RelatedCl...

TOBYINK/MooseX-ConstructInstance-0.006 - 03 Jun 2014 13:14:29 UTC - Search in distribution

MooseX::CurriedDelegation - Curry your delegations with methods River stage one • 2 direct dependents • 6 total dependents

Method delegation is awfully handy -- but sometimes it'd be awfully handier if it was a touch more dynamic. This is an attribute trait that provides for a delegated method to be curried....

RSRCHBOY/MooseX-CurriedDelegation-0.003 - 09 Nov 2016 20:52:30 UTC - Search in distribution

MooseX::MutatorAttributes - Moose Role to add a quick set method that returns self River stage zero No dependents

NOTBENH/MooseX-MutatorAttributes-0.12 - 02 Nov 2008 18:59:09 UTC - Search in distribution

MooseX::RelatedClassRoles - Apply roles to a class related to yours River stage two • 3 direct dependents • 27 total dependents

Frequently, you have to use a class that provides some "foo_class" accessor or attribute as a method of dependency injection. Use this role when you'd rather apply roles to make your custom "foo_class" instead of manually setting up a subclass....

HDP/MooseX-RelatedClassRoles-0.004 - 13 Apr 2009 00:44:53 UTC - Search in distribution

MooseX::SlurpyConstructor - Make your object constructor collect all unknown attributes River stage one • 2 direct dependents • 7 total dependents

Including this module within Moose-based classes, and declaring an attribute as 'slurpy' will allow capturing of all unknown constructor arguments in the given attribute. As of Moose 1.9900, this module can also be used in a role, in which case the c...

ETHER/MooseX-SlurpyConstructor-1.30 - 06 Feb 2017 02:29:35 UTC - Search in distribution

MooseX::StrictConstructor - Make your object constructors blow up on unknown attributes River stage three • 111 direct dependents • 202 total dependents

Simply loading this module makes your constructors "strict". If your constructor is called with an attribute init argument that your class does not declare, then it calls "Moose->throw_error()". This is a great way to catch small typos. Subverting St...

DROLSKY/MooseX-StrictConstructor-0.21 - 09 Feb 2017 19:15:08 UTC - Search in distribution

MooseX::AttributeShortcuts - Shorthand for common attribute options River stage three • 54 direct dependents • 116 total dependents

Ever find 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 "bui...

RSRCHBOY/MooseX-AttributeShortcuts-0.037 - 20 Nov 2017 22:50:19 UTC - Search in distribution

MooseX::CoercePerAttribute - Define Coercions per attribute! River stage one • 1 direct dependent • 2 total dependents

MooseX::CoercePerAttribute is a simple Moose Trait to allow you to define inline coercions per attribute. This module allows for coercions to be declared on a per attribute bases. Accepting either an array of Code refs of the coercion to be run or an...

MRF/MooseX-CoercePerAttribute-1.001 - 11 Apr 2014 15:57:15 UTC - Search in distribution

MooseX::CoverableModifiers - Make Moose method modifiers Devel::Cover friendly River stage one • 2 direct dependents • 2 total dependents

Method modifiers are handy, but they are not Devel::Cover friendly. This is because Perl makes package-level anonymous subroutines invisible to Devel::Cover, and the modifiers are often anonymous subroutines. MooseX::CoverableModifiers names the subr...

CLKAO/MooseX-CoverableModifiers-0.30 - 16 Feb 2012 16:58:09 UTC - Search in distribution

MooseX::HandlesConstructor - Moo[se] extension that allows for setting handle accessors with the constructor River stage one • 1 direct dependent • 5 total dependents

When using Moo or Moose handles that provide an accessor handle on an attribute, it may make sense to pass the name of handles to the constructor to simplify the API. Using this module will get all curried accessor handles defined in a class and allo...

ZMUGHAL/MooseX-HandlesConstructor-0.001 - 21 Jun 2014 17:21:31 UTC - Search in distribution

MooseX::AttributeDocumented - Add Documented trait to all to attributes River stage two • 7 direct dependents • 28 total dependents

Adds the Documented trait to all attributes in the class....

CSSON/MooseX-AttributeDocumented-0.1004 - 30 Jan 2019 18:43:42 UTC - Search in distribution

MooseX::ModifyTaggedMethods - use sub attributes to specify which methods want modifiers River stage zero No dependents

Normally Moose classes can specify method modifiers by name, an arrayref of names, or via a regular expression. Moose roles are more limited, not allowing regular expressions. MooseX::RoleQR extends the functionality for roles, allowing them to use r...

TOBYINK/MooseX-ModifyTaggedMethods-0.004 - 10 Sep 2014 22:49:32 UTC - Search in distribution

MooseX::TransactionalMethods - Syntax sugar for transactional methods River stage zero No dependents

This method exports the "transactional" declarator that will enclose the method in a txn_do call....

MJG/MooseX-TransactionalMethods-0.009 - 26 Mar 2015 17:56:53 UTC - Search in distribution

MooseX::AuthorizedMethodRoles - Syntax sugar for authorized methods by MooseX::Role River stage zero No dependents

This method exports the "authorized_role" declarator that makes a verification that the present package expresses the Moose::Roles as describebe by the API. So far the API has two rules 'one_of', meaning the package must express at least one of liste...

BYTEROCK/MooseX-AuthorizedMethodRoles-0.00.05 - 25 Jun 2014 01:55:22 UTC - Search in distribution

MooseX::FunctionParametersInfo - make Function::Parameters::info() data available within the meta object protocol River stage two • 17 direct dependents • 17 total dependents

Function::Parameters provides declarative sugar for processing arguments to subs, and provides a small API to query the declarations. Moose provides a comprehensive introspection API for Perl classes. MooseX::FunctionParametersInfo marries them toget...

TOBYINK/Moops-0.038 - 15 Feb 2020 09:33:03 UTC - Search in distribution
  • Moops - Moops Object-Oriented Programming Sugar

MooseX::LexicalRoleApplication - Apply roles for a lexical scope only River stage zero No dependents

This module allows applying a role for the duration of a lexical scope only....

FLORA/MooseX-LexicalRoleApplication-0.03 - 04 Feb 2010 03:17:11 UTC - Search in distribution

MooseX::SemiAffordanceAccessor - Name your accessors foo() and set_foo() River stage two • 36 direct dependents • 82 total dependents

This module does not provide any methods. Simply loading it changes the default naming policy for the loading class so that accessors are separated into get and set methods. The get methods have the same name as the accessor, while set methods are pr...

DROLSKY/MooseX-SemiAffordanceAccessor-0.10 - 05 Oct 2014 16:49:02 UTC - Search in distribution

MooseX::NestedAttributesConstructor - Create attributes from a nested data structure River stage zero No dependents

This module sets attributes from a nested data structure passed your object's constructor. The appropriate types will be created, just add the "NestedAttrubute" trait to attributes with a custom or parameterized type. Nested attributes are turned int...

SHAW/MooseX-NestedAttributesConstructor-0.01 - 29 Dec 2012 05:43:38 UTC - Search in distribution
844 results (0.242 seconds)