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.
It is possible to change:
- the function that's trimming the expression from newlines or accolades
- the
cutter
function to remove part which must not be shown - the
asCode
function to render the resulting text - the
prompt
function to possibly display the evaluated result with a prompt - the
eval
boolean indicating if a snippet must be evaluated - the
verify
function checking the result
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any