NAME

Mock::Data::SubWrapper - Wrap a coderef to become a blessed Generator object

DESCRIPTION

This is an implementation detail of Mock::Data::Generator. It wraps coderefs to be generators without bothering to allocate a new object for them.

METHODS

compile

Returns $self. (because it's already a coderef)

generate

Calls $self.

AUTHOR

Michael Conrad <mike@nrdvana.net>

VERSION

version 0.00_001

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Michael Conrad.

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