The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

SPVM::Point - a example class for easy description

SYNOPSYS

  use SPVM::Point;
  
  my $point = SPVM::Point->new(1, 2);
  my $x = $point->x;
  my $y = $point->y;

DESCRIPTION

SPVM::Point is a example class for easy description.

CLASS METHODS

  sub new : SPVM::Point ($x : int, $y : int)

Create a new SPVM::Point object.

INSTANCE METHODS

x

  sub x : int ()

Get x value.

y

  sub y : int ()

Get y value.