NAME

SPVM::Stringable - A Interface Type to Stringify a Object

SYNOPSYS

class Point {
  implement Stringable;

  method to_string : string ();
    my $x = $sel->x;
    my $y = $sel->y;
    
    my $string = "($x,$y)";
    
    return $string;
  };
}

DESCRIPTION

Stringable is a interface type to stringify a object.

INTERFACE METHODS

Interface methods.

to_string

method to_string : string ();

The implementation must return the string expression.