Skip to content

Commit

Permalink
implement Bool.Stringy
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed Oct 6, 2010
1 parent 2ee5db9 commit e9e7fca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Bool.pm
Expand Up @@ -6,6 +6,8 @@ augment class Bool does Abstraction {

method Str() { $.perl() }

method Stringy() { self ?? "True" !! "False"; }

method Bridge() { self ?? 1.Bridge !! 0.Bridge }

method pick($count = 1) {
Expand Down

0 comments on commit e9e7fca

Please sign in to comment.