Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
class Report
def create_report
# Left blank, sub-classes will implement this
end
end
class XmlReport < Report
def create_report
puts "I am an Xml Report"
end
end
class TextReport < Report
def create_report
puts "I am a Text Report"
end
end
class HtmlReport < Report
def create_report
puts "I am a Html Report"
end
end
class PdfReport < Report
def create_report
puts "I am a Pdf Report"
end
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.