In Files

Parent

Namespace

Methods

Class/Module Index [+]

Quicksearch

Opml

Attributes

outlines[R]

Public Class Methods

new(xml) click to toggle source
# File lib/opml.rb, line 50
def initialize(xml)
  @doc = REXML::Document.new(xml)

  parse_head_elements :title, :owner_name, :owner_email
  parse_head_elements :date_created, :date_modified, :with => Proc.new { |e| Time.parse(e) }

  @outlines = document_body ? initialize_outlines_from_document_body : []
end

Public Instance Methods

flatten() click to toggle source
# File lib/opml.rb, line 59
def flatten
  @flatten ||= @outlines.map(&:flatten).flatten
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.