Skip to content

Commit

Permalink
Implement Str.Int and tweak Str.Bool declaration.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Feb 7, 2010
1 parent 36620c0 commit d53e02e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/core/Str.pm
@@ -1,3 +1,7 @@
augment class Str {
method Bool { ?(pir::istrue__IP(self)); }
}
multi method Bool { ?(pir::istrue__IP(self)); }

# CHEAT: this implementation is a bit of a cheat,
# but works fine for now.
multi method Int { (+self).Int; }
}

0 comments on commit d53e02e

Please sign in to comment.