NAME

App::Math::Tutor::Role::Exercise - basic role for getting exercises

ATTRIBUTES

quantity

Specifies number of calculations to generate

exercises

Lazy hash containing the exercises to fill into the template.

Expected attribute:

section

The caption of the section containing the challenges. The solutions section will reuse the section caption prepended by Solution:.

caption

Table caption for challenges table. The solutions table will be prepended by the word Solution.

label

Label of the table containing the challenges - the solutions table will be the given label prepended by solution.

List of table headers - one header per column

challenges

List of challenges to exercise

solutions

List of solutions of challenges

usepackages

List of additional package names to pass to \usepackage

headeritems

List of additional lines to put to document header

output_name

Lazy string representing the basename without extension of the output file. The default builder returns the names of all commands in chain joined with empty string.

output_type

Lazy string representing the extension of the output file. The default builder returns 'pdf'. Permitted to be set via MooX::Options.

output_location

Lazy string representing the location of the output file in file system. The default builder returns the full qualified path name to the current working directory. Permitted to be set via MooX::Options.

REQUIRED ATTRIBUTES

template_filename

The basename of the template file for processing to get the exercises.

LICENSE AND COPYRIGHT

Copyright 2010-2014 Jens Rehsack.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.