Skip to content

Commit

Permalink
make Match.Str return a Perl 6 Str
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 30, 2010
1 parent 749fe91 commit 8081285
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/Match.pm
@@ -1,10 +1,13 @@
class Match is Regex::Match is Cool does Associative {

method ast() {
my $x = self.Regex::Match::ast;
pir::isa__IPs($x, 'Undef') ?? Any !! $x;
}

method Str() {
~self.Regex::Match::Str;
}

multi method postcircumfix:<{ }>($key) {
Q:PIR {
$P0 = find_lex 'self'
Expand Down

0 comments on commit 8081285

Please sign in to comment.