Sha256: 773d5e26e6576522e71d16c5db59114c44c46a13a0d35b6153f000c8fca692cf
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
# frozen_string_literal: true require 'attr_extras' require 'json' class CreateDocs pattr_initialize %i[] def call [ravencoin_methods] end private def docs @docs ||= JSON.parse(File.open('docs.json').read) end def ravencoin_methods File.open('ravencoin_methods.md', 'w') do |entry| entry << '# Ravencoin remote procedure calls / methods' entry << "\r\n#[Home](README.md)" with_method do |key| entry << "\r\n## #{key} \r\n" entry << docs[key] end end end def with_method docs.each_key do |key| next unless key yield key end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ravencoin_rpc_ruby-0.1.0 | lib/create_docs.rb |