-
-
10 Aug 2022 03:41:28 UTC
- Distribution: SPVM
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Repository
- Issues (12)
- Testers (202 / 0 / 2)
- Kwalitee
Bus factor: 1- 81.83% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (894.57KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- ExtUtils::CBuilder
- Time::Piece
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
Name
SPVM::Stringable - A Interface Type to Stringify a Object
Usage
class Point { interface Stringable; method to_string : string (); my $x = $sel->x; my $y = $sel->y; my $string = "($x,$y)"; return $string; }; }
Description
Stringable is an interface type to stringify a object.
Interface Methods
Interface methods.
to_string
required method to_string : string ();
The implementation must return the string expression.
Module Install Instructions
To install SPVM, copy and paste the appropriate command in to your terminal.
cpanm SPVM
perl -MCPAN -e shell install SPVM
For more information on module installation, please visit the detailed CPAN module installation guide.