---
name: "Sub::HandlesVia::Toolkit"
section: "3pm"
platform: "linux"
package: "perl-sub-handlesvia"
version: "0.053005-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Sub::HandlesVia::Toolkit"
---

# Sub::HandlesVia::Toolkit(3pm)

integration with OO frameworks for Sub::HandlesVia

## NAME

Sub::HandlesVia::Toolkit - integration with OO frameworks for Sub::HandlesVia

## DESCRIPTION

**This module is part of Sub::HandlesVia's internal API.** It is mostly of interest to people extending Sub::HandlesVia.

Detect what subclass of Sub::HandlesVia::Toolkit is suitable for a class:

```
  my $toolkit = Sub::HandlesVia->detect_toolkit($class);
```

Extract handles\_via information from a `"has"` attribute spec hash:

```
  my $shvdata = $toolkit->clean_spec($class, $attrname, \%spec);
```

This not only returns the data that Sub::HandlesVia needs, it also cleans `%spec` so that it can be passed to a Moose-like `"has"` function without it complaining about unrecognized options.

```
  $toolkit->install_delegations($shvdata) if $shvdata;
```

## BUGS

Please report any bugs to \<https://github.com/tobyink/p5-sub-handlesvia/issues\>.

## SEE ALSO

Sub::HandlesVia.

## AUTHOR

Toby Inkster \<tobyink@cpan.org\>.

## COPYRIGHT AND LICENCE

This software is copyright (c) 2020, 2022 by Toby Inkster.

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

## DISCLAIMER OF WARRANTIES

THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
