SnippetParams
case class SnippetParams[T](trimExpression: String => String, cutter: String => String, asCode: (String, String) => String, prompt: String => String, evalCode: Boolean, verify: Option[T => Result])
Evaluation and display parameters for a Snippet.
Evaluation and display parameters for a Snippet.
It is possible to change:
- the function that's trimming the expression from newlines or accolades
- the
cutterfunction to remove part which must not be shown - the
asCodefunction to render the resulting text - the
promptfunction to possibly display the evaluated result with a prompt - the
evalboolean indicating if a snippet must be evaluated - the
verifyfunction checking the result
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any