diff options
author | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-11 21:53:06 -0700 |
---|---|---|
committer | Julian Blake Kongslie <jblake@omgwallhack.org> | 2010-10-11 21:53:06 -0700 |
commit | 0e5be768a7128745bd1f4a6a3904eb67a131e719 (patch) | |
tree | 5cd7ce823f97a45ed3cb853b251084d4e81c17a3 /usr/src/libpiny/lib/Piny/Environment.pm | |
parent | 2d90167e054a7dbbf2ccb1bb68e0160c355b1b8c (diff) | |
download | piny-code-0e5be768a7128745bd1f4a6a3904eb67a131e719.tar.gz piny-code-0e5be768a7128745bd1f4a6a3904eb67a131e719.zip |
Making libpiny saner
This is a rewrite of libpiny to make much better use of Moose, and have a
cleaner overall architecture.
Signed-off-by: Julian Blake Kongslie <jblake@omgwallhack.org>
Diffstat (limited to 'usr/src/libpiny/lib/Piny/Environment.pm')
-rw-r--r-- | usr/src/libpiny/lib/Piny/Environment.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr/src/libpiny/lib/Piny/Environment.pm b/usr/src/libpiny/lib/Piny/Environment.pm index 6cd3532..06416b8 100644 --- a/usr/src/libpiny/lib/Piny/Environment.pm +++ b/usr/src/libpiny/lib/Piny/Environment.pm @@ -1,9 +1,13 @@ # Copyright © 2010 Julian Blake Kongslie <jblake@omgwallhack.org> # Licensed under the BSD 3-clause license. +use strict; +use warnings; + package Piny::Environment; use MooseX::Singleton; +use MooseX::StrictConstructor; use Piny::User; @@ -36,6 +40,6 @@ sub _build_user { # Moose boilerplate -__PACKAGE__->meta->make_immutable; +__PACKAGE__->meta->make_immutable( inline_constructor => 0 ); 1; |