Skip to content

Commit

Permalink
Add Bool.perl.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Mar 1, 2010
1 parent 1bd66da commit 9efead6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/core/Bool.pm
@@ -1,4 +1,6 @@
augment class Bool {
method Bool { self }
method ACCEPTS($topic) { self }

method perl() { self ?? "Bool::True" !! "Bool::False"; }
}

0 comments on commit 9efead6

Please sign in to comment.