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

NAME

Boilerplater::File - A Boilerplater source file.

DESCRIPTION

An abstraction representing a file which contains Boilerplater code.

METHODS

new

    my $file_obj = Boilerplater::File->new(
        blocks       => \@blocks,
        source_class => 'Dog::Dalmation',
    );
  • blocks - An arrayref. Each element must be either a Boilerplater::Class object or a literal C block.

  • source_class - The class name associated with the source file, regardless of how what classes are defined in the source file. Example: If source_class is "Foo::Bar", that implies that the source file could be found at 'Foo/Bar.bp' within the source directory and that the output C header file should be 'Foo/Bar.h' within the target include directory.

COPYRIGHT AND LICENSE

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.