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

Mic::Interface

SYNOPSIS

package Example::Usage::SetInterface;

use Mic::Interface
    object => {
        add => {},
        has => {},
    },
    class => { new => {} }
;

1;

DESCRIPTION

Defines a reusable interface using the same (hashref) specification as the interface key that is passed to Mic->define_class(...) (see "USAGE" in Mic).

See "Interface Sharing" in Mic for an example.