struct OQ::Processor

Defined in:

oq.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def args : Array(String) #

The args passed to the program.

Non oq args are passed to jq.


[View source]
def indent=(indent : Int32) #

The number of spaces to use for indentation.


[View source]
def initialize #

[View source]
def input_format=(input_format : Format) #

The format that the input data is in.


[View source]
def output_format=(output_format : Format) #

The format that the output should be transcoded into.


[View source]
def process : Nil #

Consume the input, convert the input to JSON if needed, pass the input/args to jq, then convert the output if needed.


[View source]
def tab=(tab : Bool) #

If a tab for each indentation level instead of two spaces.


[View source]
def xml_item=(xml_item : String) #

The name for XML array elements without keys.


[View source]
def xml_prolog=(xml_prolog : Bool) #

If the XML prolog should be emitted.


[View source]
def xml_root=(xml_root : String) #

The root of the XML document when transcoding to XML.


[View source]