NAME¶
Padre::Document::Perl::Starter - Starter module for Perl 5 documents
DESCRIPTION¶
Padre::Document::Perl::Starter provides support for generating Perl 5
documents and projects of various types.
METHODS¶
new¶
my $starter = Padre::Document::Perl::Starter->new($main);
The "new" constructor creates a new code generator, taking the main
window object as a parameter.
style¶
The "style" accessor returns the default code style for modules as a
Padre::Document::Perl::Starter::Style object. Any style values provided to a
specific create method will override these defaults.
main¶
The "main" accessor returns the main window object.
current¶
The "current" accessor returns a "Padre::Current" object for
the current context.
create_script¶
$starter->create_script;
Create a new blank Perl 5 script, applying the user's style preferences if
possible.
create_module¶
$starter->create_module( module => $package );
Create a new empty Perl 5 module, applying the user's style preferences if
possible. If passed a package name, that module will be created.
If no package name is provided, the user will be asked for the name to use.
create_test¶
$starter->create_test;
Create a new empty Perl 5 test, applying the user's style preferences if
possible.
create_test_compile¶
$starter->create_text_compile;
Create a new empty Perl 5 test for compilation testing of all the code in your
project, so that further tests can use your modules as normal without doing
any load testing of their own.
COPYRIGHT & LICENSE¶
Copyright 2008-2013 The Padre development team as listed in Padre.pm.
This program is free software; you can redistribute it and/or modify it under
the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this
module.