We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66eea66 commit abbd446Copy full SHA for abbd446
src/ucl/encoder.cr
@@ -15,8 +15,12 @@ module UCL
15
emitter = EMITTERS[emit_type]?
16
raise UCL::Error::EncoderError.new("Unknown emitter format: #{emit_type}") if emitter.nil?
17
18
+ String.new(build_ucl_object(object, emitter))
19
+ end
20
+
21
+ private def self.build_ucl_object(object, emitter)
22
ucl_object = to_ucl_object(object)
- String.new UCL::LibUCL.object_emit(ucl_object, emitter)
23
+ UCL::LibUCL.object_emit(ucl_object, emitter)
24
end
25
26
private def self.to_ucl_object(object)
0 commit comments