com.potenciasoftware.rebel.executionWrapper.ResultMapper.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rebel_2.13 Show documentation
Show all versions of rebel_2.13 Show documentation
Build applications that use the Scala REPL as a user interface
The newest version!
package com.potenciasoftware.rebel.executionWrapper
/**
* A mixin that provides a hook to map the strings that result from code
* execution through an ExecutionWrapper.
*/
trait ResultMapper {
def mapResult(result: String): String
}
object ResultMapper {
trait Identity extends ResultMapper {
override def mapResult(result: String): String = result
}
}