Class: PrintFile
- Inherits:
-
Object
- Object
- PrintFile
- Defined in:
- lib/nation/classes/print_file.rb
Class Method Summary collapse
Class Method Details
.print_nation_info(nation_object, ext_file) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/nation/classes/print_file.rb', line 5 def self.print_nation_info(nation_object, ext_file) case ext_file when "html" HtmlFile.convert_html_file(nation_object) when "json" JsonFile.convert_json_file(nation_object) else raise "File extention not supported yet. Extension #{ext_file}" end end |