Class: DreamTeam::Html_main::Html_main_page
- Inherits:
-
Object
- Object
- DreamTeam::Html_main::Html_main_page
- Defined in:
- lib/DreamTeam/html_main.rb
Class Method Summary collapse
Class Method Details
.create_main(path, steam_id) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/DreamTeam/html_main.rb', line 8 def self.create_main(path, steam_id) create_table_with_user_games(path, steam_id) create_table_with_film(path) erb_str = File.read('lib/DreamTeam/main_page.html.erb') @path = path renderer = ERB.new(erb_str) result = renderer.result(binding) File.open(path + "/table_main.html", 'w') do |f| f.write(result) end end |