Created
October 2, 2009 20:18
-
-
Save overture8/200080 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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