enum

UCL::Emitter

Inherits Enum < Comparable < Value < Object

Typed output formats accepted by UCL.dump / UCL::Encoder.encode.

Prefer this over the legacy string form ("json", ...): a wrong member is a compile-time error instead of a runtime EncoderError.

Constants

Json = 0
JsonCompact = 1
Config = 2
Yaml = 3
Msgpack = 4

Instance methods

config?

Returns true if this enum value equals Config

Source
json?

Returns true if this enum value equals Json

Source
json_compact?

Returns true if this enum value equals JsonCompact

Source
msgpack?

Returns true if this enum value equals Msgpack

Source
to_lib

Maps to the raw libucl emitter.

Source
yaml?

Returns true if this enum value equals Yaml

Source