Class: HTOTConv::Parser::HtmlList

Inherits:
Base
  • Object
show all
Defined in:
lib/htot_conv/parser/html_list.rb

Defined Under Namespace

Classes: ListDoc

Instance Attribute Summary

Attributes inherited from Base

#option

Instance Method Summary collapse

Methods inherited from Base

#initialize, option_help

Constructor Details

This class inherits a constructor from HTOTConv::Parser::Base

Instance Method Details

#parse(input) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/htot_conv/parser/html_list.rb', line 6

def parse(input)
  outline = HTOTConv::Outline.new
  outline.key_header = []
  outline.value_header = []

  parser = Nokogiri::HTML::SAX::Parser.new(ListDoc.new(outline))
  parser.parse(input)

  outline
end