Module: Deba

Defined in:
lib/deba.rb,
lib/deba.rb

Defined Under Namespace

Classes: DefinitionDescription, DefinitionTerm, Document, Extractor, Heading, ListItem, Paragraph, Span, Stringifier, Utils

Constant Summary collapse

VERSION =
"0.15.0"

Class Method Summary collapse

Class Method Details

.extract(html, options = {}) ⇒ Object



19
20
21
22
# File 'lib/deba.rb', line 19

def self.extract(html, options = {})
  doc = html.is_a?(Nokogiri::XML::Node) ? html : Nokogiri.HTML(html)
  Deba::Extractor.new(doc, options).extract
end