[Bps-public-commit] r12424 - in Prophet/branches/moose: .
sartak at bestpractical.com
sartak at bestpractical.com
Sat May 17 03:57:02 EDT 2008
Author: sartak
Date: Sat May 17 03:57:02 2008
New Revision: 12424
Modified:
Prophet/branches/moose/ (props changed)
Prophet/branches/moose/lib/Prophet/PropChange.pm
Log:
r56125 at onn: sartak | 2008-05-17 03:13:35 -0400
Moosify PropChange
Modified: Prophet/branches/moose/lib/Prophet/PropChange.pm
==============================================================================
--- Prophet/branches/moose/lib/Prophet/PropChange.pm (original)
+++ Prophet/branches/moose/lib/Prophet/PropChange.pm Sat May 17 03:57:02 2008
@@ -1,10 +1,20 @@
-use warnings;
-use strict;
-
package Prophet::PropChange;
-use base qw/Class::Accessor/;
+use Moose;
-__PACKAGE__->mk_accessors(qw/name old_value new_value/);
+has name => (
+ is => 'rw',
+ isa => 'Str',
+);
+
+has old_value => (
+ is => 'rw',
+ isa => 'Maybe[Str]',
+);
+
+has new_value => (
+ is => 'rw',
+ isa => 'Str',
+);
=head1 NAME
@@ -31,4 +41,7 @@
=cut
+__PACKAGE__->meta->make_immutable;
+no Moose;
+
1;
More information about the Bps-public-commit
mailing list