Sha256: 96735c56d68e899f6f211052da8f55296403c933a55d1562b97a8ad9db0575b1
Contents?: true
Size: 314 Bytes
Versions: 12
Compression:
Stored size: 314 Bytes
Contents
class DocumentationBuilder def self.create(doc_hash) FileUtils.rm_rf("#{Rails.root}/docs") FileUtils.mkdir_p(Rails.root.join('docs', 'api', 'v1', 'currencies')) File.open(Rails.root.join('docs', 'api', 'v1', 'currencies', '1.json'), 'w') do |line| line.puts(doc_hash.to_json) end end end
Version data entries
12 entries across 12 versions & 1 rubygems