toPrimitive

open override fun String.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral.


open override fun Boolean.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral with content "true" or "false".


open override fun Int.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral with the decimal string of the value.


open override fun Long.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral with the decimal string of the value.


open override fun Float.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral with the decimal string of the value.


open override fun Double.toPrimitive(): KpaPrimitive(source)

Return

A KpaPrimitive wrapping this as a YamlLiteral with the decimal string of the value.