module Encoders
Extended Modules
Defined in:
encoders/core.crInstance Method Summary
-
#categories : Array(String)
Return all unique categories.
-
#categories_json : String
JSON: list categories with their encoders.
-
#describe_json(name : String) : String | Nil
JSON: describe a single encoder by name.
-
#encode_chain(str, encoders : Array(String)) : String
Apply a chain of encoders (processes from last to first).
-
#encode_chain_steps(str, encoders : Array(String)) : Array(NamedTuple(encoder: String, output: String))
Apply a chain and return step-by-step results (for --chain-info).
-
#find(name : String) : EncoderSpec | Nil
Lookup a spec by any name or alias (case-insensitive).
-
#help_lines : Array(String)
Produce lines suited for help output.
-
#register(spec : EncoderSpec)
Register a new encoder specification.
-
#search(keyword : String) : Array(EncoderSpec)
Search encoders by keyword (matches name, aliases, description, category).
-
#specs : Array(EncoderSpec)
Return all registered specs (in registration order).
-
#to_json_array : String
JSON: list all encoders.
Instance Method Detail
Apply a chain of encoders (processes from last to first).
Apply a chain and return step-by-step results (for --chain-info).
Lookup a spec by any name or alias (case-insensitive).
Register a new encoder specification. If a name/alias already exists it will be overwritten by this spec.
Search encoders by keyword (matches name, aliases, description, category).