CsvRendererBoolean
com.phasmidsoftware.tableparser.core.render.CsvRenderers.CsvRendererBoolean
object CsvRendererBoolean extends StandardCsvRenderer[Boolean]
An implicit object for rendering Boolean values into CSV (Comma-Separated Values) format.
CsvRendererBoolean extends the StandardCsvRenderer abstraction, which provides a base implementation for converting objects into their CSV string representation.
This implicit object handles the rendering of Boolean values by converting them to their string representation, typically as "true" or "false".
Usage: The CsvRendererBoolean can be implicitly used wherever a StandardCsvRenderer[Boolean] is required, enabling seamless conversion of Boolean values to CSV-compatible strings.
Example:
// Assuming an implicit `CsvAttributes` in scope
val renderer = summon[StandardCsvRenderer[Boolean]]
val csvValue = renderer.render(true, Map.empty)
println(csvValue) // Output: "true"
Attributes
- Graph
-
- Supertypes
-
class StandardCsvRenderer[Boolean]trait CsvRenderer[Boolean]class Objecttrait Matchableclass Any
- Self type
-
CsvRendererBoolean.type
Members list
In this article