Class: Microformats::HCalendar
- Inherits:
-
Object
- Object
- Microformats::HCalendar
- Includes:
- MicroformatParser
- Defined in:
- lib/uformatparser.rb
Overview
Parses the fields of an hCalendar element.
Defines rules for the following attributes:
- dtstart
-
The event’s start date/time (a Time object)
- dtend
-
The event’s end date/time (a Time object)
- summary
-
The event’s summary (text value)
- description
-
The event’s description (XML node)
- url
-
The event’s URL (string)
For example:
content = Microformats.parse(doc)
content.events.each do |event}
put "Event on " + event.dtstart
end
Method Summary
Methods included from MicroformatParser
#default_extractor, #extractor, #parse, #rule, #rule_1, #rules, #selector, text, xml