projects
/
gitmo/Class-MOP.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
get_all_attributes for MI
[gitmo/Class-MOP.git]
/
lib
/
Class
/
MOP
/
Instance.pm
diff --git
a/lib/Class/MOP/Instance.pm
b/lib/Class/MOP/Instance.pm
index
75df7ea
..
749bbc6
100644
(file)
--- a/
lib/Class/MOP/Instance.pm
+++ b/
lib/Class/MOP/Instance.pm
@@
-91,6
+91,11
@@
sub get_all_slots {
return @{$self->{'slots'}};
}
+sub get_all_attributes {
+ my $self = shift;
+ return @{$self->{attributes}};
+}
+
sub is_valid_slot {
my ($self, $slot_name) = @_;
exists $self->{'slot_hash'}->{$slot_name};