enum RemiLib::RSConf::Builder::State

Overview

Indicates the current state of a Builder instance.

Defined in:

remilib/rsconf/builder.cr

Enum Members

Toplevel = 0

Waiting to write the toplevel value.

Array = 1

Writing an array.

Object = 2

Writing an object.

Key = 3

In an object and a key has been written, now we need a value.

Done = 4

Toplevel is finished, no more writing possible.

Instance Method Summary

Instance methods inherited from struct Enum

toRsconf(builder : RemiLib::RSConf::Builder) toRsconf

Constructor methods inherited from struct Enum

new(val : RemiLib::RSConf::RSValue) new

Instance methods inherited from class Object

toRsconf(io : IO, *, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : Nil
toRsconf(*, indentSize : Int = 2, alwaysQuoteKeys : Bool = false, explicitRootObject : Bool = false, commaAfterValues : Bool = false, extraNewlineBetweenToplevelKeys : Bool = false) : String
toRsconf

Class methods inherited from class Object

fromRsconf(toplevel : RemiLib::RSConf::RSValue)
fromRsconf(data : String | IO | Path)
fromRsconf

Instance Method Detail

def array? #

Returns true if this enum value equals Array


[View source]
def done? #

Returns true if this enum value equals Done


[View source]
def key? #

Returns true if this enum value equals Key


[View source]
def object? #

Returns true if this enum value equals Object


[View source]
def toplevel? #

Returns true if this enum value equals Toplevel


[View source]