class Cool

Object that can be treated as both a string and number
class Cool is Any { }

Methods

routine abs

Defined as:

sub abs(Numeric() $x)
    method abs()

# vim: expandtab softtabstop=4 shiftwidth=4 ft=perl6

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.