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

Data::Object::Base::Integer

ABSTRACT

Data-Object Abstract Integer Class

SYNOPSIS

  package My::Integer;

  use parent 'Data::Object::Base::Integer';

  my $integer = My::Integer->new(9);

DESCRIPTION

Data::Object::Base::Integer provides routines for operating on Perl 5 integer data.

METHODS

This package implements the following methods.

new

  new(Int $arg1) : Object

The new method expects a number and returns a new class instance.

new example
  # given 9

  package My::Integer;

  use parent 'Data::Object::Base::Integer';

  my $integer = My::Integer->new(9);