case class SnippetParams[T](trimExpression: (String) => String = trimApproximatedSnippet, cutter: (String) => String = ScissorsCutter(), asCode: (String, String) => String = markdownCode(offset = 0), prompt: (String) => String = greaterThanPrompt, evalCode: Boolean = false, verify: Option[(T) => Result] = None) extends Product with Serializable
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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- SnippetParams
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new SnippetParams(trimExpression: (String) => String = trimApproximatedSnippet, cutter: (String) => String = ScissorsCutter(), asCode: (String, String) => String = markdownCode(offset = 0), prompt: (String) => String = greaterThanPrompt, evalCode: Boolean = false, verify: Option[(T) => Result] = None)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val asCode: (String, String) => String
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def check[R](f: (T) => R)(implicit arg0: AsResult[R]): SnippetParams[T]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- val cutter: (String) => String
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def eval: SnippetParams[T]
- val evalCode: Boolean
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def offsetIs(offset: Int): SnippetParams[T]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val prompt: (String) => String
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val trimExpression: (String) => String
- val verify: Option[(T) => Result]
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()