class HTOTConv::Parser::Opml

Public Class Methods

option_help() click to toggle source
# File lib/htot_conv/parser/opml.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/opml.rb, line 17
def parse(input)
  outline = HTOTConv::Outline.new
  outline.key_header = @option[:key_header]
  outline.value_header = []

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

  outline
end