Skip to content

Commit

Permalink
Pod::To::Text display enums
Browse files Browse the repository at this point in the history
  • Loading branch information
kalkin committed Jan 4, 2020
1 parent 87de5ee commit f60d969
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Pod/To/Text.rakumod
Expand Up @@ -93,6 +93,9 @@ sub declarator2text($pod) {
when Sub {
'sub ' ~ $_.name ~ signature2text($_.signature.params)
}
when .HOW ~~ Metamodel::EnumHOW {
"enum $_.raku() { signature2text $_.enums.pairs } \n"
}
when .HOW ~~ Metamodel::ClassHOW {
'class ' ~ $_.raku
}
Expand Down

0 comments on commit f60d969

Please sign in to comment.