Method: Cocoadex::Parser.index_html
- Defined in:
- lib/cocoadex/parser.rb
.index_html(docset, path, index) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/cocoadex/parser.rb', line 52 def self.index_html docset, path, index logger.debug " Parsing path: #{path}" doc = Nokogiri::HTML(IO.read(path)) if title = doc.css("#IndexTitle").first['content'] case title when ClassReference Tokenizer.tokenize_class(docset.name, path, index) when GenericReference Tokenizer.tokenize_ref(docset.name, path, index) when DeprecatedMethods # TODO else # TODO end end end |