projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8eaf26e
)
Use class_of instead of CMOPC->initialize
Shawn M Moore [Fri, 22 May 2009 03:25:09 +0000 (23:25 -0400)]
lib/Moose/Exporter.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Exporter.pm
b/lib/Moose/Exporter.pm
index
375b2d8
..
ff8a296
100644
(file)
--- a/
lib/Moose/Exporter.pm
+++ b/
lib/Moose/Exporter.pm
@@
-419,7
+419,7
@@
Moose::Exporter - make an import() and unimport() just like Moose.pm
sub has_rw {
my ($caller, $name, %options) = @_;
- Class::MOP::Class->initialize($caller)->add_attribute($name,
+ Class::MOP::class_of($caller)->add_attribute($name,
is => 'rw',
%options,
);