The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Role::NotSoTiny

VERSION

version 0.1.0

SYNOPSIS

  use Role::NotSoTiny ();

  Role::NotSoTiny->make_role('Foo');
  *Foo::foo = sub {...};

  # runtime equivalent of
  package Foo;
  use Role::Tiny;
  sub foo {...}

DESCRIPTION

This module is an experiment with Role::Tiny. The change here is being a proposed as a patch to the original code. See https://github.com/moose/Role-Tiny/pull/4.

NAME

Role::NotSoTiny - Experiment with Role::Tiny / Role::NotSoTiny->make_role()

METHODS

Role::NotSoTiny inherits all methods of Role::Tiny and implements the following new ones.

make_role

  Role::NotSoTiny->make_role('Some::Package');

Promotes a given package to a role. No subroutines are imported into 'Some::Package'.

AUTHOR

Adriano Ferreira <ferreira@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2018 by Adriano Ferreira.

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