Skip to content

Commit

Permalink
is_composed in ParametricRoleHOW so we can stub a role.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Jun 27, 2011
1 parent 4fc90f1 commit eda6101
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Perl6/Metamodel/ParametricRoleHOW.pm
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Perl6::Metamodel::ParametricRoleHOW
$obj
}

method is_composed($obj) {
$!composed
}

method type_check($obj, $checkee) {
if $obj =:= $checkee {
return 1;
Expand Down

0 comments on commit eda6101

Please sign in to comment.