enum OQ::Format

Overview

The support formats that can be converted to/from.

Defined in:

oq.cr

Enum Members

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 Method Summary

Instance Method Summary

Class Method Detail

def self.to_s(io : IO) : Nil #

Returns the list of supported formats.


[View source]

Instance Method Detail

def converter(processor : OQ::Processor) #

Maps a given format to its converter.


[View source]
def json? #

[View source]
def simple_yaml? #

[View source]
def xml? #

[View source]
def yaml? #

[View source]