| 1 | package Mongoose::Meta::AttributeTraits; | ||
| 2 | 1 | $Mongoose::Meta::AttributeTraits::VERSION = '2.02'; | |
| 3 | package Mongoose::Meta::Attribute::Trait::Binary; | ||
| 4 | 1 | $Mongoose::Meta::Attribute::Trait::Binary::VERSION = '2.02'; | |
| 5 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | 1 | has 'column' => ( | |
| 9 | isa => 'Str', | ||
| 10 | is => 'rw', | ||
| 11 | ); | ||
| 12 | |||
| 13 | 1 | has 'lazy_select' => ( | |
| 14 | isa => 'Bool', | ||
| 15 | is => 'rw', | ||
| 16 | default => 0, | ||
| 17 | ); | ||
| 18 | |||
| 19 | # ----------------------------------------------------------------- | ||
| 20 | |||
| 21 | { | ||
| 22 | package Moose::Meta::Attribute::Custom::Trait::Binary; | ||
| 23 | 1 | $Moose::Meta::Attribute::Custom::Trait::Binary::VERSION = '2.02'; | |
| 24 | 0 | ▶ | sub register_implementation {'Mongoose::Meta::Attribute::Trait::Binary'} |
|
Subroutine
register_implementation: not called CC=1 SCAR=6.9
| |||
| 25 | } | ||
| 26 | |||
| 27 | # ----------------------------------------------------------------- | ||
| 28 | |||
| 29 | 1 | package Mongoose::Meta::Attribute::Trait::DoNotMongoSerialize; | |
| 30 | 1 | $Mongoose::Meta::Attribute::Trait::DoNotMongoSerialize::VERSION = '2.02'; | |
| 31 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 32 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 33 | |||
| 34 | 1 | has 'column' => ( | |
| 35 | isa => 'Str', | ||
| 36 | is => 'rw', | ||
| 37 | ); | ||
| 38 | |||
| 39 | 1 | has 'lazy_select' => ( | |
| 40 | isa => 'Bool', | ||
| 41 | is => 'rw', | ||
| 42 | default => 0, | ||
| 43 | ); | ||
| 44 | |||
| 45 | # ----------------------------------------------------------------- | ||
| 46 | |||
| 47 | { | ||
| 48 | package Moose::Meta::Attribute::Custom::Trait::DoNotMongoSerialize; | ||
| 49 | 1 | $Moose::Meta::Attribute::Custom::Trait::DoNotMongoSerialize::VERSION = '2.02'; | |
| 50 | 1 | ▶ | sub register_implementation {'Mongoose::Meta::Attribute::Trait::DoNotMongoSerialize'} |
|
Subroutine
register_implementation: called CC=1 SCAR=0.0
| |||
| 51 | } | ||
| 52 | |||
| 53 | # ----------------------------------------------------------------- | ||
| 54 | |||
| 55 | { | ||
| 56 | 1 | package Mongoose::Meta::Attribute::Trait::Raw; | |
| 57 | 1 | $Mongoose::Meta::Attribute::Trait::Raw::VERSION = '2.02'; | |
| 58 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 59 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 60 | } | ||
| 61 | { | ||
| 62 | 1 | package Moose::Meta::Attribute::Custom::Trait::Raw; | |
| 63 | 1 | $Moose::Meta::Attribute::Custom::Trait::Raw::VERSION = '2.02'; | |
| 64 | 0 | ▶ | sub register_implementation {'Mongoose::Meta::Attribute::Trait::Raw'} |
|
Subroutine
register_implementation: not called CC=1 SCAR=6.9
| |||
| 65 | } | ||
| 66 | |||
| 67 | =head1 NAME | ||
| 68 | |||
| 69 | Mongoose::Meta::AttributeTraits - Mongoose related attribute traits | ||
| 70 | |||
| 71 | =head1 DESCRIPTION | ||
| 72 | |||
| 73 | All Moose attribute traits used by Mongoose are defined here. | ||
| 74 | |||
| 75 | =head2 DoNotMongoSerialize | ||
| 76 | |||
| 77 | Makes Mongoose skip collapsing or expanding the attribute. | ||
| 78 | |||
| 79 | =head2 Raw | ||
| 80 | |||
| 81 | Skips unblessing of an attribute when saving an object. | ||
| 82 | |||
| 83 | =cut | ||
| 84 | |||
| 85 | 1 | 1; | |