Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update to work with recent Moose. Fixes a bug reported by Tyler

Riddle on irc.perl.org #reflex.
  • Loading branch information...
commit 56ac1a4b853043e258dfcc052e954c4afbfd4d0d 1 parent 98db344
@rcaputo authored
Showing with 11 additions and 3 deletions.
  1. +2 −2 dist.ini
  2. +9 −1 lib/Reflex/Role.pm
View
4 dist.ini
@@ -1,5 +1,5 @@
name = Reflex
-version = 0.090
+version = 0.091
author = Rocco Caputo <rcaputo@cpan.org>
license = Perl_5
copyright_holder = Rocco Caputo
@@ -9,7 +9,7 @@ abstract = A class library for flexible, reactive programming.
Scalar::Util = 1.23
POE = 1.294
Test::More = 0.96
-Moose = 1.21
+Moose = 2.0203
MooseX::Role::Parameterized = 0.23
[Repository]
View
10 lib/Reflex/Role.pm
@@ -30,7 +30,13 @@ sub attribute_parameter {
my ($name, $default) = @_;
- $meta->add_parameter($name, ( isa => 'Str', default => $default ) );
+ $meta->add_parameter(
+ $name, (
+ is => 'rw',
+ isa => 'Str',
+ default => $default
+ )
+ );
}
sub method_parameter {
@@ -51,6 +57,7 @@ sub method_parameter {
$meta->add_parameter(
$name,
(
+ is => 'rw',
isa => 'Str',
lazy => 1,
default => sub {
@@ -85,6 +92,7 @@ sub callback_parameter {
$meta->add_parameter(
$name,
(
+ is => 'rw',
isa => 'Str',
lazy => 1,
default => sub {
Please sign in to comment.
Something went wrong with that request. Please try again.