struct OQ::Processor
- OQ::Processor
- Struct
- Value
- Object
Defined in:
oq.crConstructors
Instance Method Summary
-
#args : Array(String)
The args passed to the program.
-
#indent=(indent : Int32)
The number of spaces to use for indentation.
- #initialize
-
#input_format=(input_format : Format)
The format that the input data is in.
-
#output_format=(output_format : Format)
The format that the output should be transcoded into.
-
#process : Nil
Consume the input, convert the input to JSON if needed, pass the input/args to
jq
, then convert the output if needed. -
#tab=(tab : Bool)
If a tab for each indentation level instead of two spaces.
-
#xml_item=(xml_item : String)
The name for XML array elements without keys.
-
#xml_prolog=(xml_prolog : Bool)
If the XML prolog should be emitted.
-
#xml_root=(xml_root : String)
The root of the XML document when transcoding to XML.
Constructor Detail
Instance Method Detail
The format that the output should be transcoded into.
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.