enum

OQ::Format

Inherits Enum / Comparable / Value / Object

The support formats that can be converted to/from.

Constants

JSON = 0

The JSON format.

SimpleYAML = 1

Same as YAML, but does not support anchors or aliases; thus allowing for the input conversion to be streamed, reducing the memory usage for large inputs.

XML = 2

The XML format.

NOTE: Conversion to and from JSON uses this spec.

YAML = 3

The YAML format.

Class methods

to_s(io : IO) : Nil

Returns the list of supported formats.

Source

Instance methods

converter(processor : OQ::Processor)

Maps a given format to its converter.

Source
json?

Returns true if this enum value equals JSON

Source
simple_yaml?

Returns true if this enum value equals SimpleYAML

Source
xml?

Returns true if this enum value equals XML

Source
yaml?

Returns true if this enum value equals YAML

Source