Class: Microformats

Inherits:
Object
  • Object
show all
Includes:
MicroformatParser
Defined in:
lib/uformatparser.rb

Overview

A parser for several microformats.

Defines rules for the following attributes:

tags

A list of tags based on relTag (array of String)

events

A list of events based on hCalendar (array of HCalendar)

For example:

content = Microformats.parse(doc)
puts "Tagged with " + content.tags.join(", ") if content.tags

Defined Under Namespace

Classes: HCalendar

Method Summary

Methods included from MicroformatParser

#default_extractor, #extractor, #parse, #rule, #rule_1, #rules, #selector, text, xml