SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG
DONATE


YUM REPOSITORY

 
 

MAN page from Fedora 28 perl-MooseX-Declare-0.43-7.fc28.noarch.rpm

MooseX::Declare::Syntax::MooseSetup

Section: User Contributed Perl Documentation (3pm)
Updated: 2015-08-16
Index 

NAME

MooseX::Declare::Syntax::MooseSetup - Common Moose namespaces declarations 

VERSION

version 0.43 

DESCRIPTION

This role is basically an extension toNamespaceHandling. It adds allthe common parts for Moose namespace definitions. Examples of this rolecan be found in the class androle keywords. 

METHODS

 

auto_make_immutable

  Bool Object->auto_make_immutable ()

Since Moose::Roles can't be made immutable (this is not a bug or amissing feature, it would make no sense), this always returns false. 

imported_moose_symbols

  List Object->imported_moose_symbols ()

This will return "confess" and "blessed" by default to provide asadditional imports to the namespace. 

import_symbols_from

  Str Object->import_symbols_from ()

The namespace from which the additional imports will be imported. Thiswill return "Moose" by default. 

CONSUMES

*
MooseX::Declare::Syntax::NamespaceHandling
*
MooseX::Declare::Syntax::EmptyBlockIfMissing
 

MODIFIED METHODS

 

default_inner

  ArrayRef default_inner ()

This will provide the following default inner-handlers to the namespace:

*
method

A simple Method handler.

*
around

This is a MethodModifierhandler that will start the signature of the generated method with"$orig: $self" to provide the original method in $orig.

*
after
*
before
*
override
*
augment

These four handlers are MethodModifierinstances.

*
clean

This is an instance of the Clean keywordhandler.

The original method will never be called and all arguments are ignored at themoment. 

setup_inner_for

  Object->setup_inner_for (ClassName $class)

This will install a "with" function that will push its arguments onto a globalstorage array holding the roles of the current namespace. 

add_namespace_customizations

  Object->add_namespace_customizations (Object $context, Str $package, HashRef $options)

After all other customizations, this will first add code to import the``imported_moose_symbols'' from the package returned in ``import_symbols_from'' tothe preamble.

Then it will add a code part that will immutabilize the class to thecleanup code if the``auto_make_immutable'' method returned a true value and "$options->{is}{mutable}"does not exist. 

handle_post_parsing

  CodeRef Object->handle_post_parsing (Object $context, Str $package, Str|Object $name)

Generates a callback that sets up the roles in the global role storage for the currentnamespace. The $name parameter will be the specified name (in contrast to $packagewhich will always be the fully qualified name) or the anonymous metaclass instance ifnone was specified. 

SEE ALSO

*
MooseX::Declare
*
Moose
 

AUTHOR

Florian Ragwitz <raflAATTdebian.org> 

COPYRIGHT AND LICENSE

This software is copyright (c) 2008 by Florian Ragwitz.

This is free software; you can redistribute it and/or modify it underthe same terms as the Perl 5 programming language system itself.


 

Index

NAME
VERSION
DESCRIPTION
METHODS
auto_make_immutable
imported_moose_symbols
import_symbols_from
CONSUMES
MODIFIED METHODS
default_inner
setup_inner_for
add_namespace_customizations
handle_post_parsing
SEE ALSO
AUTHOR
COPYRIGHT AND LICENSE

This document was created byman2html,using the manual pages.