Custom Interpreter
| Import |
| com.greenpepper.interpreter |
| GreenPepper.Interpreters |
This seed aims to prove that
GreenPepper allows users to create their own interpreter.
| rule for |
interpreter recognition |
| interpreter row |
instance of? |
is an interpreter? |
| [ setup ] [mock] |
SetupInterpreter |
true |
| [ do with ] [mock] |
DoWithInterpreter |
true |
| [ list of] [mock] |
ListOfInterpreter |
true |
| [ list of] [mock] |
ListOfInterpreter |
true |
| [ my own] |
MyOwnInterpreter |
true |
Here is an example for this interpreter MyOwnInterpreter. It just colors the second cell of the row depending on the first cell value.
The interpreter My Own interpreter is fixtureless, It just colors the second cell of the row depending on the first cell value.
| my own |
| right |
|
| wrong |
|
| right |
|
| ignore |
|