Sha256: 072e723fa10a633642a997a946326f0e26748093849bc006574f8b6f4a27c826
Contents?: true
Size: 338 Bytes
Versions: 28
Compression:
Stored size: 338 Bytes
Contents
require 'json' module PDoc module Generators class JSON < AbstractGenerator def render(output) open(output, "w+") do |file| json = root.registry.map do |k, obj| "#{k.inspect}: #{obj.to_json}" end.join(",\n ") file << "{\n #{json}\n}" end end end end end
Version data entries
28 entries across 28 versions & 2 rubygems