abstract class TOML::Value

Overview

Typed TOML value. Every concrete value remembers its original #raw source text so the serializer can re-emit it byte-for-byte for unmodified documents.

Concrete subclasses expose the decoded value through a typed accessor (StringValue#decoded, IntegerValue#int_value, …).

Direct Known Subclasses

Defined in:

toml/value.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(raw : String) #

[View source]

Instance Method Detail

def raw : String #

[View source]
def to_toml(io : IO) : Nil #

[View source]