Classes

The following classes are available globally.

  • A representation of a YAML tag see: https://yaml.org/spec/1.2.2/ Types interested in Encoding and Decoding Anchors should conform to YamlAnchorProviding and YamlAnchorCoding respectively.

    See more

    Declaration

    Swift

    public final class Anchor : RawRepresentable, ExpressibleByStringLiteral, Codable, Hashable
    extension Anchor: CustomStringConvertible
  • Constructors are used to translate Nodes to Swift values.

    See more

    Declaration

    Swift

    public final class Constructor
  • Codable-style Decoder that can be used to decode a Decodable type from a given String and optional user info mapping. Similar to Foundation.JSONDecoder.

    See more

    Declaration

    Swift

    public class YAMLDecoder
    extension YAMLDecoder: TopLevelDecoder
  • Class responsible for emitting libYAML events.

    See more

    Declaration

    Swift

    public final class Emitter
  • Codable-style Encoder that can be used to encode an Encodable type to a YAML string using optional user info mapping. Similar to Foundation.JSONEncoder.

    See more

    Declaration

    Swift

    public class YAMLEncoder
  • Parses YAML strings.

    See more

    Declaration

    Swift

    public final class Parser
  • An implementation of RedundancyAliasingStrategy that defines alias-ability by Hashable-Equality. i.e. if two values are Hashable-Equal, they will be aliased in the resultant YML document.

    See more

    Declaration

    Swift

    public class HashableAliasingStrategy : RedundancyAliasingStrategy
  • An implementation of RedundancyAliasingStrategy that defines alias-ability by the coded representation of the values. i.e. if two values encode to exactly the same, they will be aliased in the resultant YML document even if the values themselves are of different types

    See more

    Declaration

    Swift

    public class StrictEncodableAliasingStrategy : RedundancyAliasingStrategy
  • Class used to resolve nodes to tags based on customizable rules.

    See more

    Declaration

    Swift

    public final class Resolver
  • Tag

    Tags describe the the type of a Node.

    See more

    Declaration

    Swift

    public final class Tag
    extension Tag: CustomStringConvertible
    extension Tag: Hashable
    extension Tag: RawRepresentable
    extension Tag: Codable
    extension Tag: ExpressibleByStringLiteral