Module HTree::Doc::Trav
In: htree/modules.rb
htree/traverse.rb

Methods

author   has_xmldecl?   root   title  

Included Modules

Container::Trav

Public Instance methods

author searches author and return it as a text. It returns nil if not found.

author searchs following information.

  • <meta name="author" content="author-name"> in HTML
  • <link rev="made" title="author-name"> in HTML
  • <dc:creator>author-name</dc:creator> in RSS
  • <dc:publisher>author-name</dc:publisher> in RSS
  • <author><name>author-name</name></author> in Atom

+has_xmldecl?+ returns true if there is an XML declaration on top level.

root searches root element. If there is no element on top level, it raise HTree::Error. If there is two or more elements on top level, it raise HTree::Error.

title searches title and return it as a text. It returns nil if not found.

title searchs following information.

[Validate]