module Encoders

Extended Modules

Defined in:

encoders/core.cr

Instance Method Summary

Instance Method Detail

def encode_chain(str, encoders : Array(String)) : String #

Apply a chain of encoders (mutates the passed encoders array via pop).


[View source]
def find(name : String) : EncoderSpec | Nil #

Lookup a spec by any name or alias (case-insensitive).


[View source]
def help_lines : Array(String) #

Produce lines suited for help output.


[View source]
def register(spec : EncoderSpec) #

Register a new encoder specification. If a name/alias already exists it will be overwritten by this spec.


[View source]
def specs : Array(EncoderSpec) #

Return all registered specs (in registration order).


[View source]