~ubuntu-branches/ubuntu/trusty/libmoosex-has-sugar-perl/trusty-proposed

« back to all changes in this revision

Viewing changes to t/07_attr_lazy_build/TestPackage.pm

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Yu
  • Date: 2010-10-04 19:42:43 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101004194243-pbq4ccon2503ufj1
Tags: 0.05046611-1
* New upstream release
* Standards-Version 3.9.1 (no changes)
* Use new 3.0 (quilt) source format
* Update to new DEP5 copyright format
* Drop RELEASE_TESTING and related test dependencies

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
package TestPackage;
2
 
our $VERSION = '0.0405';
3
 
 
4
 
 
5
 
 
6
 
# $Id:$
7
 
use strict;
8
 
use warnings;
9
 
use Moose;
10
 
use namespace::autoclean;
11
 
 
12
 
use MooseX::Has::Sugar;
13
 
 
14
 
has roattr => ( isa => 'Str', is => 'ro', lazy_build, );
15
 
 
16
 
has rwattr => ( isa => 'Str', is => 'rw', lazy_build, );
17
 
 
18
 
sub _build_rwattr {
19
 
    return 'y';
20
 
}
21
 
 
22
 
sub _build_roattr {
23
 
    return 'y';
24
 
}
25
 
 
26
 
__PACKAGE__->meta->make_immutable;
27
 
 
28
 
1;
29