main.rb475 chars19 linesThe function generate_html takes in three arguments title, body_content, and ordered_list. It then uses Ruby's File.open method to create a file output.html and writes the HTML code to the file based on the arguments passed in. The body content is wrapped in a paragraph tag and the ordered list is generated using a loop over the items in the provided array.
gistlibby LogSnag