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

« back to all changes in this revision

Viewing changes to t/lib/T7AttrLazyBuild/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 T7AttrLazyBuild::TestPackage;
 
2
 
 
3
# $Id:$
 
4
use strict;
 
5
use warnings;
 
6
use Moose;
 
7
use namespace::autoclean;
 
8
 
 
9
use MooseX::Has::Sugar;
 
10
 
 
11
has roattr => ( isa => 'Str', is => 'ro', lazy_build, );
 
12
 
 
13
has rwattr => ( isa => 'Str', is => 'rw', lazy_build, );
 
14
 
 
15
sub _build_rwattr {
 
16
    return 'y';
 
17
}
 
18
 
 
19
sub _build_roattr {
 
20
    return 'y';
 
21
}
 
22
 
 
23
__PACKAGE__->meta->make_immutable;
 
24
 
 
25
1;
 
26