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

NAME

Test::Mock::Signature::Meta - meta class. Used as a signature container.

SYNOPSIS

Create meta container module:

    my $meta = Test::Mock::Signature::Meta->new(
        class  => 'My::Real::Class',
        method => 'do_something',
        params => [ 1, 2, 3 ]
    );

DESCRIPTION

Module for storing meta information of the signature. Used internally to iterate between meta clases in Test::Mock::Signature::Dispatcher.

METHODS

new()

Takes 3 paramters (as a key value pairs).

class

Name of the real class which we are mocking.

method

Name of the mocked method.

params

Array reference of the parameters.

callback( [ $code_ref ] )

Set callback for the given meta information if $code_ref is given or return callback if not.

params()

Getter for the params.

AUTHOR

cono <cono@cpan.org>

COPYRIGHT

Copyright 2014 - cono

LICENSE

Artistic v2.0

SEE ALSO

Test::Mock::Signature