Manpage logo

SPVM::Stringer - Interface Type for Stringing Callback

Name  Usage  Description  Interface Methods  Copyright & License 

Name

SPVM::Stringer − Interface Type for Stringing Callback

Usage

use Stringer;
use Point;
my $stringer = (Stringer)method : string ($object : object) {
my $point = (Point)$object;
my $string = $point−>to_string;
return $string;
};
my $point = Point−>new(1, 2);
my $string = $stringer−>($point);

Description

Stringer is the interface type for the stringing callback.

Interface Methods

"required method : string ($object : object)"

The implementation must receive an object and return the string that represents the object.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License


Updated 2026-06-01 - jenkler.se | uex.se