| 1 | package CBOR::Free::Tagged; | ||
| 2 | |||
| 3 | 27 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 27 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =encoding utf-8 | ||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | CBOR::Free::Tagged | ||
| 11 | |||
| 12 | =head1 SYNOPSIS | ||
| 13 | |||
| 14 | my $tagged = CBOR::Free::Tagged->new( 1, '2019-05-01T01:02:03Z' ); | ||
| 15 | |||
| 16 | =head1 DESCRIPTION | ||
| 17 | |||
| 18 | This class represents tagged objects for L<CBOR::Free>. You might as well | ||
| 19 | invoke it via C<CBOR::Free::tagged()> rather than instantiating this class | ||
| 20 | directly, though. | ||
| 21 | |||
| 22 | =head1 METHODS | ||
| 23 | |||
| 24 | =head2 $obj = I<CLASS>->new( $TAG_NUMBER, $VALUE ) | ||
| 25 | |||
| 26 | $TAG_NUMBER is the CBOR tag number to apply on the given $VALUE. | ||
| 27 | |||
| 28 | Returns a class instance. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 105 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 33 | 105 | return bless \@_, shift; | |
| 34 | } | ||
| 35 | |||
| 36 | 27 | 1; | |