| 1 | package Dancer::Plugin::Documentation::Section; | ||||||||||
| 2 | |||||||||||
| 3 | 3 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 3 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 3 | ▶ | use MooX::Types::MooseLike::Base qw{Str}; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 3 | ▶ | use namespace::clean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 3 | extends 'Dancer::Plugin::Documentation::Base'; | |||||||||
| 11 | |||||||||||
| 12 | has section => ( | ||||||||||
| 13 | is => 'ro', | ||||||||||
| 14 | 21 | ▶ | isa => sub { (Str)->($_[0]); die "section must not be the empty string" if $_[0] eq '' }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=7.2
Branch: 1 branch
| |||||||||||
| 15 | 21 | ▶ | coerce => sub { defined $_[0] ? lc $_[0] : undef }, | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 16 | 3 | default => undef, | |||||||||
| 17 | ); | ||||||||||
| 18 | |||||||||||
| 19 | 3 | 1; | |||||||||