Permalink
Browse files

Move lines() method from Match into Cool. (RT #117461)

  • Loading branch information...
1 parent 7cd3302 commit 0d1d1194a44ccbc768017bc0c15249a6715ef25d @pmichaud pmichaud committed Apr 22, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −0 src/core/Cool.pm
  2. +0 −3 src/core/Match.pm
View
@@ -168,6 +168,9 @@ my class Cool {
multi method comb() { self.Str.comb() }
multi method comb(Regex $matcher, $limit = $Inf) { self.Str.comb($matcher, $limit) }
+ proto method lines(|) {*}
+ multi method lines(Cool:D:) { self.Str.lines() }
+
proto method subst(|) {
$/ := nqp::getlexdyn('$/');
{*}
View
@@ -78,9 +78,6 @@ my class Match is Capture is Cool {
$ast
);
}
- method lines(Match:D:) {
- self.Str.lines
- }
}
sub make(Mu $ast) {

0 comments on commit 0d1d119

Please sign in to comment.