Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #110 from gerdr/patch-1
Add Bool method to Capture
  • Loading branch information
moritz committed Apr 15, 2013
2 parents 3529536 + 9f873d8 commit e1f5d99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/Capture.pm
Expand Up @@ -69,6 +69,10 @@ my class Capture {
nqp::p6box_s(nqp::join(' ', $str))
}

multi method Bool(Capture:D:) {
$!list || $!hash ?? True !! False
}

method Capture(Capture:D:) {
self
}
Expand Down

0 comments on commit e1f5d99

Please sign in to comment.