All of Hpricot’s various part are loaded when you use require 'hpricot'.
hpricot_scan: the scanner (a C extension for Ruby) which turns an HTML stream into tokens.
hpricot/parse.rb: uses the scanner to sort through tokens and give you back a complete document object.
hpricot/tag.rb: sets up objects for the various types of elements in an HTML document.
hpricot/modules.rb: categorizes the various elements using mixins.
hpricot/traverse.rb: methods for searching documents.
hpricot/elements.rb: methods for dealing with a group of elements as an Hpricot::Elements list.
hpricot/inspect.rb: methods for displaying documents in a readable form.