struct Oq::Processor
- Oq::Processor
- Struct
- Value
- Object
Defined in:
oq.crConstructors
Instance Method Summary
-
#args : Array(String)
The args passed to the program.
-
#args=(args : Array(String))
The args passed to the program.
-
#indent : Int32
The number of spaces to use for indentation.
-
#indent=(indent : Int32)
The number of spaces to use for indentation.
- #initialize
-
#input_format : Format
The format that the input data is in.
-
#input_format=(input_format : Format)
The format that the input data is in.
-
#output_format : Format
The format that the output should be transcoded into.
-
#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. -
#xml_root : String
The root of the XML document when transcoding to XML.
-
#xml_root=(xml_root : String)
The root of the XML document when transcoding to XML.
Instance methods inherited from class Object
to_xml(builder : XML::Builder) : Nilto_xml(io : IO, *, root : String | Nil, indent : String) : Nil
to_xml(*, root : String = "root", indent : String = " ") : String to_xml
Constructor Detail
Instance Method Detail
The args passed to the program.
Non oq
args are just passed to jq
.
The format that the output should be transcoded into.
Consume the input, convert the input to JSON if needed, pass the input/args to jq
, then convert the output if needed.