Class: HTML2FB::Document

Inherits:
Section show all
Defined in:
lib/Html2Feedbooks/document.rb,
lib/Html2Feedbooks/feedbooks.rb

Instance Attribute Summary

Attributes inherited from Section

#content, #fblevel, #title

Instance Method Summary collapse

Methods inherited from Section

#decorated_title, #initialize, #old_to_html, #titles, #to_html, #to_s

Constructor Details

This class inherits a constructor from HTML2FB::Section

Instance Method Details

#to_feedbooks(conf) ⇒ Object



42
43
44
45
46
47
48
49
50
51
# File 'lib/Html2Feedbooks/feedbooks.rb', line 42

def to_feedbooks(conf)
	FBSession.new(conf)
	#File.open('/tmp/test3.html','w') do |f|
	content.each do |e|
		#		f << e.to_feedbooks(conf)
		e.to_feedbooks(conf,nil)
		#		f << " \n " *  10
	end
	#end
end

#tocObject



43
44
45
46
47
48
# File 'lib/Html2Feedbooks/document.rb', line 43

def toc
	#return content
	return content.collect{|a|
		a.titles
	}
end