[libcode-tidyall-perl] 114/374: convert to Moo
Jonas Smedegaard
js at alioth.debian.org
Sun Sep 29 22:25:59 UTC 2013
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository libcode-tidyall-perl.
commit f829c508ed4145a5cd88fcd4f6d68ad61d19e6a6
Author: Jonathan Swartz <swartz at pobox.com>
Date: Tue Jul 24 14:01:10 2012 -0700
convert to Moo
---
lib/Code/TidyAll/Result.pm | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lib/Code/TidyAll/Result.pm b/lib/Code/TidyAll/Result.pm
index 61155ee..c8f678c 100644
--- a/lib/Code/TidyAll/Result.pm
+++ b/lib/Code/TidyAll/Result.pm
@@ -1,8 +1,10 @@
package Code::TidyAll::Result;
-use strict;
-use warnings;
+use Moo;
-use Object::Tiny qw(msg path state new_contents);
+has 'msg' => ( is => 'ro' );
+has 'new_contents' => ( is => 'ro' );
+has 'path' => ( is => 'ro' );
+has 'state' => ( is => 'ro' );
sub error { return $_[0]->state eq 'error' }
sub ok { return $_[0]->state ne 'error' }
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libcode-tidyall-perl.git
More information about the Pkg-perl-cvs-commits
mailing list