classes/genclass.pl - Create a template PMC file
% perl classes/genclass.pl Foo > Foo.pmc
Use this script to generate a template PMC file with stubs for all the methods you need to fill in. See docs/vtables.pod for more information on adding a new PMC to Parrot.
To see what a minimal PMC looks like, create a PMC template and compile it to C.
cd classes perl genclass.pl Foo > foo.pmc perl pmc2c.pl foo.pmc
classes/pmc2c.pl, docs/vtables.pod.
To install Ruby, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Ruby
CPAN shell
perl -MCPAN -e shell install Ruby
For more information on module installation, please visit the detailed CPAN module installation guide.