class HtmlToTextile

Public Class Methods

new(string) click to toggle source
# File lib/html_to_textile.rb, line 217
def initialize(string)
  @tree = []
  @document = Document.new
  parser = ::Nokogiri::HTML::SAX::Parser.new(@document)
  parser.parse(string)
end

Public Instance Methods

to_html() click to toggle source
# File lib/html_to_textile.rb, line 228
def to_html
  @document.to_html
end
to_textile() click to toggle source
# File lib/html_to_textile.rb, line 224
def to_textile
  @document.to_textile
end