Install
sudo gem install nokogiri
Contribute
github.com/tenderlove/nokogiri

An HTML, XML, SAX, & Reader parser with the ability to search documents via XPath or CSS3 selectors… and much more

Nokogiri

Class Object inherits from Object

Public Instance Methods

Nokogiri(*args, &block) Show Source
 

Parser 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 or Nokogiri.HTML.

# File lib/nokogiri.rb, line 129 129: def Nokogiri(*args, &block) 130: if block_given? 131: builder = Nokogiri::HTML::Builder.new(&block) 132: return builder.doc.root 133: else 134: Nokogiri.parse(*args) 135: end 136: end