projects
/
gitmo/Class-MOP.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
ca21261
)
Small tweaks to initializer docs
Dave Rolsky [Sat, 12 Sep 2009 22:23:31 +0000 (17:23 -0500)]
lib/Class/MOP/Attribute.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Class/MOP/Attribute.pm
b/lib/Class/MOP/Attribute.pm
index
22f8746
..
4e128ec
100644
(file)
--- a/
lib/Class/MOP/Attribute.pm
+++ b/
lib/Class/MOP/Attribute.pm
@@
-591,7
+591,7
@@
twice the given value.
Class::MOP::Attribute->new(
'doubled' => (
initializer => sub {
- my ( $instance, $value, $set ) = @_;
+ my ( $self, $value, $set, $attr ) = @_;
$set->( $value * 2 );
},
)