enum
RemiLib::RSConf::Builder::State
Overview
Indicates the current state of a Builder instance.
Defined in:
remilib/rsconf/builder.crEnum 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
-
#array?
Returns
trueif this enum value equalsArray -
#done?
Returns
trueif this enum value equalsDone -
#key?
Returns
trueif this enum value equalsKey -
#object?
Returns
trueif this enum value equalsObject -
#toplevel?
Returns
trueif this enum value equalsToplevel
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) : NiltoRsconf(*, 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