class UCL::Encoder

Defined in:

ucl/encoder.cr

Constant Summary

DEFAULT_EMITTER = "config"
EMITTERS = {"json" => UCL::LibUCL::Emitters::UCL_EMIT_JSON, "json_compact" => UCL::LibUCL::Emitters::UCL_EMIT_JSON_COMPACT, "config" => UCL::LibUCL::Emitters::UCL_EMIT_CONFIG, "yaml" => UCL::LibUCL::Emitters::UCL_EMIT_YAML, "msgpack" => UCL::LibUCL::Emitters::UCL_EMIT_MSGPACK, "max" => UCL::LibUCL::Emitters::UCL_EMIT_MAX}

Class Method Summary

Class Method Detail

def self.encode(object, emit_type = DEFAULT_EMITTER) : String #

[View source]