class HtmlToTextile
Public Class Methods
new(string)
click to toggle source
# File lib/html_to_textile.rb 217 def initialize(string) 218 @tree = [] 219 @document = Document.new 220 parser = ::Nokogiri::HTML::SAX::Parser.new(@document) 221 parser.parse(string) 222 end
Public Instance Methods
to_html()
click to toggle source
# File lib/html_to_textile.rb 228 def to_html 229 @document.to_html 230 end
to_textile()
click to toggle source
# File lib/html_to_textile.rb 224 def to_textile 225 @document.to_textile 226 end