projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8457be6
)
find_meta is equivalent to class_of
Shawn M Moore [Tue, 31 Mar 2009 04:07:03 +0000 (
00:07
-0400)]
lib/Moose/Util.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Util.pm
b/lib/Moose/Util.pm
index
67b33ad
..
bc78ab9
100644
(file)
--- a/
lib/Moose/Util.pm
+++ b/
lib/Moose/Util.pm
@@
-31,10
+31,7
@@
Sub::Exporter::setup_exporter({
## some utils for the utils ...
-sub find_meta {
- return unless $_[0];
- return Class::MOP::get_metaclass_by_name(blessed($_[0]) || $_[0]);
-}
+sub find_meta { Class::MOP::class_of(@_) }
## the functions ...