class HTOTConv::Parser::HtmlList
Public Class Methods
option_help()
click to toggle source
# File lib/htot_conv/parser/html_list.rb, line 7 def self.option_help { :key_header => { :default => [], :pat => Array, :desc => "key header", }, } end
Public Instance Methods
parse(input)
click to toggle source
# File lib/htot_conv/parser/html_list.rb, line 17 def parse(input) outline = HTOTConv::Outline.new outline.key_header = @option[:key_header] outline.value_header = [] parser = Nokogiri::HTML::SAX::Parser.new(ListDoc.new(outline)) parser.parse(input) outline end