StringOps

org.virtuslab.yaml.package$.StringOps
final implicit class StringOps(val str: String) extends AnyVal

Attributes

Source
Yaml.scala
Graph
Supertypes
class AnyVal
trait Matchable
class Any

Members list

Value members

Concrete methods

def as[T](implicit c: YamlDecoder[T], settings: LoadSettings): Either[YamlError, T]

Parse YAML from the given String, returning either YamlError or T.

Parse YAML from the given String, returning either YamlError or T.

According to the specification:

  • Parser takes input string and produces sequence of events
  • then Composer produces a representation graph from events
  • finally YamlDecoder (construct phase from the YAML spec) constructs data type T from the YAML representation.

Attributes

Source
Yaml.scala
def asNode: Either[YamlError, Node]

Attributes

Source
Yaml.scala

Concrete fields

val str: String

Attributes

Source
Yaml.scala