Skip to content

Instantly share code, notes, and snippets.

@overture8
Created October 2, 2009 20:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save overture8/200080 to your computer and use it in GitHub Desktop.
Save overture8/200080 to your computer and use it in GitHub Desktop.
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