-
http://ruby-doc.org/core-2.2.0/File.html#method-c-directory-3F
-
Loop Recursively Until no Directories are left to loop over.
-
Use
File.read
to read the YML file one at a time. -
require 'yaml' module to start using it.
-
Use the
YAML
module'sload
method to convert the YAML into a Ruby data structure, ie:Hash
-
Know the structure of the hash and output it into a Markdown file.
Created
August 16, 2015 21:06
-
-
Save jasdeepsingh/bddd666c955a7a7c7646 to your computer and use it in GitHub Desktop.
yml_to_markdown
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment