Author image Marvin Humphrey
and 1 contributors

NAME

Clownfish::Binding::Perl::Method - Binding for an object method.

DESCRIPTION

This class isa Clownfish::Binding::Perl::Subroutine -- see its documentation for various code-generating routines.

Method bindings use labeled parameters if the C function takes more than one argument (other than self). If there is only one argument, the binding will be set up to accept a single positional argument.

METHODS

new

    my $binding = Clownfish::Binding::Perl::Method->new(
        method => $method,    # required
    );

xsub_def

Generate the XSUB code.

COPYRIGHT AND LICENSE

Copyright 2008-2011 Marvin Humphrey

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