| 1 | package Langertha::Role::ServerTools; | ||
| 2 | # ABSTRACT: Role for an engine whose wire accepts provider-native server-side tools | ||
| 3 | 30 | our $VERSION = '0.505'; | |
| 4 | 30 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 30 | ▶ | use Langertha::ServerTool; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | |||
| 8 | has server_tools => ( | ||
| 9 | is => 'ro', | ||
| 10 | isa => 'ArrayRef', | ||
| 11 | 287 | ▶ | default => sub { [] }, |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | 30 | ); | |
| 13 | |||
| 14 | |||
| 15 | 47 | ▶ | sub _server_tool_wire_check { |
|
Subroutine
_server_tool_wire_check: called CC=1 SCAR=0.0
| |||
| 16 | 47 | my ( $self, $server_tool ) = @_; | |
| 17 | 47 | return $server_tool->to( $server_tool->wire ); | |
| 18 | } | ||
| 19 | |||
| 20 | |||
| 21 | |||
| 22 | 30 | 1; | |
| 23 | |||
| 24 | __END__ | ||