Skip to content
Permalink
Browse files

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

Riddle on irc.perl.org #reflex.
  • Loading branch information...
rcaputo committed Aug 26, 2011
1 parent 98db344 commit 56ac1a4b853043e258dfcc052e954c4afbfd4d0d
Showing with 11 additions and 3 deletions.
  1. +2 −2 dist.ini
  2. +9 −1 lib/Reflex/Role.pm
@@ -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]
@@ -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 {

0 comments on commit 56ac1a4

Please sign in to comment.
You can’t perform that action at this time.