…lines 1–14 unchanged (14 lines)
15 def dump(object, options = {})
16 if options.delete(:pretty)
17 options.merge!({
18 indent: " ",
19 space: " ",
20 object_nl: "\n",
21 array_nl: "\n",
22 })
23 end
24
25 object.to_json(options)
26 end
27 end
28 end
29end
30