global

def Nokogiri(*args, &block)

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

Nokogiri.parse
type of document you are attempting to parse. For more information, see
Parser a document contained in +args+. Nokogiri will try to guess what
##
def Nokogiri(*args, &block)
  if block_given?
    builder = Nokogiri::HTML::Builder.new(&block)
    return builder.doc.root
  else
    Nokogiri.parse(*args)
  end
end