Skip to content

Commit

Permalink
Add examples for problem and generator configs
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar committed Mar 12, 2015
1 parent 1756db6 commit 927207d
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/basic_concepts.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ This component is defined by overriding the method **BaseProblem::Config()**. In

If not specified, the default slug is **problem**.

For example:

.. sourcecode:: cpp

void Config() {
setSlug("helloworld");
}

Input variables
***************

Expand Down Expand Up @@ -264,6 +272,15 @@ This component is defined by overriding the method **BaseGenerator::Config()**.

If not specified, the default command is **./solution**.

For example:

.. sourcecode:: cpp

void Config() {
setBaseDir("testdata");
setSolution("java Solution");
}

Test cases
**********

Expand Down

0 comments on commit 927207d

Please sign in to comment.