Permalink
Browse files

Add Cool.eval.

  • Loading branch information...
colomon committed Apr 19, 2012
1 parent 5b6457f commit aa61ed50e6b0c96a82fa833faff6503f4cafda7c
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/CORE.setting
View
@@ -659,6 +659,7 @@ my class Cool {
method trim-leading () { self.subst(/^ \s+/, "") }
method trim-trailing() { self.subst(/\s+ $/, "") }
method trim () { self.trim-leading.trim-trailing }
+ method eval() { eval(~self) }
method fmt(Str $format = '%s') {
sprintf($format, self);

0 comments on commit aa61ed5

Please sign in to comment.