Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add .^mro for NQPClassHOW.
  • Loading branch information
jnthn committed Jul 5, 2011
1 parent 5efb646 commit a957601
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/how/NQPClassHOW.pm
Expand Up @@ -34,6 +34,7 @@ knowhow NQPClassHOW {
# Parrot-specific vtable mapping hash. Maps vtable name to method.
has %!parrot_vtable_mapping;
has %!parrot_vtable_handler_mapping;

##
## Declarative.
##
Expand Down Expand Up @@ -385,6 +386,10 @@ knowhow NQPClassHOW {
method parents($obj, :$local) {
$local ?? @!parents !! @!mro
}

method mro($obj) {
@!mro
}

method roles($obj, :$local!) {
@!roles
Expand Down

0 comments on commit a957601

Please sign in to comment.