diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-06 17:50:16 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2015-06-06 17:50:16 +0000 |
commit | 5ac2026f7eed78958d69d051e7a8e993dcf51205 (patch) | |
tree | 298c3d2f08bdfe5689998b11892d72a897985be1 /t/cmop/lib/MyMetaClass.pm | |
download | Moose-tarball-5ac2026f7eed78958d69d051e7a8e993dcf51205.tar.gz |
Moose-2.1405HEADMoose-2.1405master
Diffstat (limited to 't/cmop/lib/MyMetaClass.pm')
-rw-r--r-- | t/cmop/lib/MyMetaClass.pm | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/t/cmop/lib/MyMetaClass.pm b/t/cmop/lib/MyMetaClass.pm new file mode 100644 index 0000000..ade02e5 --- /dev/null +++ b/t/cmop/lib/MyMetaClass.pm @@ -0,0 +1,14 @@ +package MyMetaClass; + +use strict; +use warnings; + +use parent 'Class::MOP::Class'; + +sub mymetaclass_attributes{ + my $self = shift; + return grep { $_->isa("MyMetaClass::Attribute") } + $self->get_all_attributes; +} + +1; |