Skip to content

Commit

Permalink
[htmlify] include roles done by superclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Jul 26, 2012
1 parent bb60ccf commit 1ac7939
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions htmlify.pl
Expand Up @@ -137,6 +137,20 @@ ($out_dir = 'html', Bool :$debug)
),
%methods-by-type{$c}.list,
;
for $c.roles -> $r {
next unless %methods-by-type{$r};
$pod.content.push:
pod-heading("Methods supplied by role $r"),
pod-block(
"$podname inherits from class ",
pod-link($c.name, "/type/$c"),
", which does role ",
pod-link($r.name, "/type/$r"),
", which provides the following methods:",
),
%methods-by-type{$r}.list,
;
}
}
}
spurt "$out_dir/$what/$podname.html", pod2html($pod, :url(&url-munge), :$footer);
Expand Down

0 comments on commit 1ac7939

Please sign in to comment.