Class: KindleFeeds

Inherits:
Object
  • Object
show all
Defined in:
lib/feedle.rb

Overview

In the original class the output file can’t be customized

Instance Method Summary collapse

Instance Method Details

#generate_html(file) ⇒ Object



7
8
9
10
11
# File 'lib/feedle.rb', line 7

def generate_html(file)
	erb = ERB.new(File.read(ERB_TEMPLATE))
   	out = erb.result(binding())
   	File.open(file, "w") { |f| f.write out }
end