| 1 | # | ||
| 2 | # This file is part of MooseX-Attribute-Deflator | ||
| 3 | # | ||
| 4 | # This software is Copyright (c) 2012 by Moritz Onken. | ||
| 5 | # | ||
| 6 | # This is free software, licensed under: | ||
| 7 | # | ||
| 8 | # The (three-clause) BSD License | ||
| 9 | # | ||
| 10 | package MooseX::Attribute::LazyInflator::Role::Class; | ||
| 11 | { | ||
| 12 | 7 | $MooseX::Attribute::LazyInflator::Role::Class::VERSION = '2.2.2'; | |
| 13 | } | ||
| 14 | |||
| 15 | # ABSTRACT: Lazy inflate attributes | ||
| 16 | 7 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 17 | 7 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 18 | 7 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 19 | |||
| 20 | 0 | ▶ | has _inflated_attributes => ( is => 'rw', isa => 'HashRef', lazy => 1, default => sub {{}} ); |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 21 | |||
| 22 | |||
| 23 | 7 | 1; | |
| 24 | |||
| 25 | |||
| 26 | |||
| 27 | =pod | ||
| 28 | |||
| 29 | =head1 NAME | ||
| 30 | |||
| 31 | MooseX::Attribute::LazyInflator::Role::Class - Lazy inflate attributes | ||
| 32 | |||
| 33 | =head1 VERSION | ||
| 34 | |||
| 35 | version 2.2.2 | ||
| 36 | |||
| 37 | =head1 ATTRIBUTES | ||
| 38 | |||
| 39 | =over 8 | ||
| 40 | |||
| 41 | =item B<_inflated_attributes> | ||
| 42 | |||
| 43 | This attributes keeps a HashRef of inflated attributes. | ||
| 44 | |||
| 45 | =back | ||
| 46 | |||
| 47 | =head1 AUTHOR | ||
| 48 | |||
| 49 | Moritz Onken | ||
| 50 | |||
| 51 | =head1 COPYRIGHT AND LICENSE | ||
| 52 | |||
| 53 | This software is Copyright (c) 2012 by Moritz Onken. | ||
| 54 | |||
| 55 | This is free software, licensed under: | ||
| 56 | |||
| 57 | The (three-clause) BSD License | ||
| 58 | |||
| 59 | =cut | ||
| 60 | |||
| 61 | |||
| 62 | __END__ | ||