Skip to content

Commit

Permalink
Remove some accidentally duplicated POD.
Browse files Browse the repository at this point in the history
I did this at some point according to git blame.  The removed POD was
also not up to date.  The POD before it is.
  • Loading branch information
drgrice1 committed Apr 12, 2024
1 parent 97fa82a commit 582b93a
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions lib/WeBWorK/PG/Translator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,43 +72,6 @@ use WWSafe;
use PGUtil qw(pretty_print);
use WeBWorK::PG::IO qw(fileFromPath);

=head1 NAME
WeBWorK::PG::Translator - Evaluate PG code and evaluate answers safely
=head1 SYNPOSIS
my $pt = new WeBWorK::PG::Translator; # create a translator
$pt->environment(\%envir); # provide the environment variable for the problem
$pt->initialize(); # initialize the translator
$pt-> set_mask(); # set the operation mask for the translator safe compartment
$pt->source_string($source); # provide the source string for the problem
# Load the unprotected macro files.
# These files are evaluated with the Safe compartment wide open.
# Other macros are loaded from within the problem using loadMacros.
$pt->unrestricted_load("${courseScriptsDirectory}PG.pl");
$pt->translate(); # translate the problem (the following pieces of information are created)
$PG_PROBLEM_TEXT_ARRAY_REF = $pt->ra_text(); # output text for the body of the HTML file (in array form)
$PG_PROBLEM_TEXT_REF = $pt->r_text(); # output text for the body of the HTML file
$PG_HEADER_TEXT_REF = $pt->r_header; # text for the header of the HTML file
$PG_POST_HEADER_TEXT_REF = $pt->r_post_header
$PG_ANSWER_HASH_REF = $pt->rh_correct_answers; # a hash of answer evaluators
$PG_FLAGS_REF = $pt->rh_flags; # misc. status flags.
$pt->process_answers; # evaluates all of the answers
my $rh_answer_results = $pt->rh_evaluated_answers; # provides a hash of the results of evaluating the answers.
my $rh_problem_result = $pt->grade_problem; # grades the problem using the default problem grading method.
=head1 DESCRIPTION
This module defines an object which will translate a problem written in the Problem Generating (PG) language
=cut

BEGIN {
# Setup the safe compartment for the standalone renderer.
if (exists $ENV{MOJO_MODE}) {
Expand Down

0 comments on commit 582b93a

Please sign in to comment.