NAME

Sub::Meta::Returns - meta information about return values

SYNOPSIS

use Sub::Meta::Returns;

my $r = Sub::Meta::Returns->new;

METHODS

new

Constructor of Sub::Meta::Returns.

my $r = Sub::Meta::Returns->new(
    scalar  => 'Str', # optional
    list    => 'Str', # optional
    void    => 'Str', # optional
    coerce  => 1,     # optional
);

scalar

A type for value when called in scalar context.

set_scalar(Any)

Setter of scalar.

list

A type for value when called in list context.

set_list(Any)

Setter of list.

void

A type for value when called in void context.

set_void(Any)

Setter of void.

coerce

A boolean whether with coercions.

set_coerce(Bool)

Setter of coerce.

LICENSE

Copyright (C) kfly8.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

kfly8 <kfly@cpan.org>