123456789_123456789_123456789_123456789_123456789_

Top Level Namespace

Relationships & Source Files
Namespace Children
Modules:
Classes:
Exceptions:

Instance Method Summary

Instance Method Details

Nokogiri(*args, &block)

Parse a document contained in args. Nokogiri will try to guess what type of document you are attempting to parse. For more information, see Nokogiri.parse

To specify the type of document, use Nokogiri.XML, Nokogiri.HTML4, or Nokogiri.HTML5.

[ GitHub ]

  
# File 'lib/nokogiri.rb', line 108

def Nokogiri(*args, &block)
  if block
    Nokogiri::HTML4::Builder.new(&block).doc.root
  else
    Nokogiri.parse(*args)
  end
end