Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 2010.04
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.488 kb
augment class Str {
multi method Bool { ?(pir::istrue__IP(self)); }
method Str() { self }
# CHEAT: this implementation is a bit of a cheat,
# but works fine for now.
multi method Int { (+self).Int; }
multi method Num { (+self).Num; }
method d() {
self.e ?? ?pir::stat__ISI(self, 2) !! Bool;
}
method f() {
self.e ?? !pir::stat__ISI(self, 2) !! Bool;
}
method s() {
self.e ?? pir::stat__ISI(self, 1) !! Any;
}
}
Jump to Line
Something went wrong with that request. Please try again.