Permalink
Browse files

Make some attr lazy

  • Loading branch information...
1 parent 363fb6e commit 16bfa758b849e10916af66a61efd1154c93b2656 @jtpalmer committed Mar 29, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 week4/lib/Games/ElectricLines.pm
@@ -19,6 +19,7 @@ has _share_dir => (
has _app => (
is => 'ro',
isa => 'SDLx::App',
+ lazy => 1,
builder => '_build_app',
handles => [qw( run )],
);
@@ -91,6 +92,7 @@ has _label => (
has _exits => (
is => 'ro',
isa => 'ArrayRef',
+ lazy => 1,
builder => '_build_exits',
);

0 comments on commit 16bfa75

Please sign in to comment.