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]
trait Renderer[Boolean, String]
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Inherited methods

def render(t: Boolean, attrs: Map[String, String]): String

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Renders an object of type T into its string representation. Additional attributes can be specified via a map, but they are not used in the default implementation.

Value parameters

attrs

a map of attributes influencing the rendering process; not used in the default implementation.

t

the object of type T to be rendered.

Attributes

Returns

a string representation of the object t.

Inherited from:
StandardCsvRenderer
def render(t: Boolean): String

Render an instance of T as an O, qualifying the rendering with no attributes.

Render an instance of T as an O, qualifying the rendering with no attributes.

Value parameters

t

a T to be rendered.

Attributes

Returns

an instance of type O.

Inherited from:
Renderer

Inherited fields

Attributes

Inherited from:
StandardCsvRenderer