Skip to content

Commit

Permalink
Add Cool.eval.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Apr 19, 2012
1 parent 5b6457f commit aa61ed5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/CORE.setting
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit aa61ed5

Please sign in to comment.