| 1 | package Sque::Encoder; | ||
| 2 | 6 | $Sque::Encoder::VERSION = '0.010'; | |
| 3 | 6 | ▶ | use Any::Moose 'Role'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 6 | ▶ | use JSON; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | # ABSTRACT: Any::Moose role for encoding Sque structures | ||
| 7 | # | ||
| 8 | # =attr encoder | ||
| 9 | # | ||
| 10 | # JSON encoder by default. | ||
| 11 | # | ||
| 12 | # =cut | ||
| 13 | 11 | ▶ | has encoder => ( is => 'ro', default => sub { JSON->new->utf8 } ); |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 14 | |||
| 15 | 6 | 1; | |
| 16 | |||
| 17 | __END__ | ||