Top Level Namespace

Defined Under Namespace

Modules: Nokogiri

Instance Method Summary collapse

Instance Method Details

#Nokogiri(*args, &block) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/nokogiri.rb', line 38

def Nokogiri(*args, &block)
  if block_given?
    builder = Nokogiri::HTML::Builder.new(&block)
    return builder.doc
  else
    Nokogiri::HTML.parse(*args)
  end
end