Boilerplater::ParamList - parameter list.
my $type = Boilerplater::ParamList->new( variables => \@vars, # required initial_values => \@vals, # default: undef variadic => 1, # default: false );
variables - An array where each element is a Boilerplater::Variable.
initial_values - If supplied, an array of default values, one for each variable.
variadic - Should be true if the function is variadic.
Accessors.
Return the number of variables in the ParamList, including "self" for methods.
# Prints "Obj* self, Foo* foo, Bar* bar". print $param_list->to_c;
Return a list of the variable's types and names, joined by commas.
# Prints "self, foo, bar". print $param_list->name_list;
Return the variable's names, joined by commas.
Copyright 2008-2009 Marvin Humphrey
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install KSx::Simple, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KSx::Simple
CPAN shell
perl -MCPAN -e shell install KSx::Simple
For more information on module installation, please visit the detailed CPAN module installation guide.