Name

SPVM::Mutable::Short - Mutable short Object

Description

The Mutable::Short class has methods to manipulate an object that has a short value.

This class is mutable.

Usage

my $short_object = Mutable::Short->new(5);
my $short_value = $short_object->value;
$short_object->set_value(10);

Fields

value

has value : rw short;

The value.

Class Methods

new

static method new : Mutable::Short ($value : int);

Creates a new Mutable::Short object with a short $value.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License