class Recall::SiteGenerator
Public Class Methods
new(results)
click to toggle source
# File lib/recall/site_generator.rb, line 3 def initialize(results) @results = results end
Public Instance Methods
make_page!()
click to toggle source
# File lib/recall/site_generator.rb, line 6 def make_page! template_file = File.expand_path("../templates/sublime.rb.erb", __FILE__) template_doc= File.open(template_file) template = ERB.new(template_doc.read) output_file = File.expand_path("../_site/ruby_file.rb", __FILE__) File.open(output_file, "w") do |f| f.write( template.result(binding) ) f.close end `open #{output_file}` end