---
name: "MooseX::Declare::Syntax::RoleApplication"
section: "3pm"
platform: "linux"
package: "libmoosex-declare-perl"
version: "0.43-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/MooseX::Declare::Syntax::RoleApplication"
---

# MooseX::Declare::Syntax::RoleApplication(3pm)

Handle user specified roles

## NAME

MooseX::Declare::Syntax::RoleApplication - Handle user specified roles

## VERSION

version 0.43

## DESCRIPTION

This role extends MooseX::Declare::Syntax::OptionHandling and provides a `"with|/add_with_option_customizations"` option.

## METHODS

### add\_with\_option\_customizations

```
  Object->add_with_option_customizations (
      Object   $context,
      Str      $package,
      ArrayRef $roles,
      HashRef  $options
  )
```

This will add a call to `"with"` in the scope code.

## CONSUMES

- •

  MooseX::Declare::Syntax::OptionHandling

## SEE ALSO

- •

  MooseX::Declare

- •

  MooseX::Declare::Syntax::OptionHandling

## AUTHOR

Florian Ragwitz \<rafl@debian.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 under the same terms as the Perl 5 programming language system itself.
