Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
rep_gen = ReportGenerator.new
my_reports = [XmlReport.new, TextReport.new, HtmlReport.new, PdfReport.new]
my_reports.each do |report|
rep_gen.print_report(report)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.