class FeedParser::Feed

Attributes

authors[RW]
categories[RW]
description[RW]
description=[RW]
feed_url[RW]
format[RW]
generator[RW]
items[RW]
published[RW]
published_line[RW]
published_local[RW]
published_text[RW]
subtitle[RW]
subtitle=[RW]
summary[RW]
tags[RW]
title[RW]
updated[RW]
updated_line[RW]
updated_local[RW]
updated_text[RW]
url[RW]

Public Class Methods

new() click to toggle source

fix: add pretty printer/inspect (exclude object)

# File lib/feedparser/feed.rb, line 77
def initialize
  ## note: make items, authors, tags empty arrays on startup (e.g. not nil)
  @items   = []
  @authors = []
  @tags    = []

  @generator = Generator.new
end

Public Instance Methods

author() click to toggle source

add author shortcut e.g. equals authors - for now only read only

fix: also add author=  why? why not???
# File lib/feedparser/feed.rb, line 22
def author() @authors[0]; end
author?()

note: author? is an alias for authors?

Alias for: authors?
authors?() click to toggle source
# File lib/feedparser/feed.rb, line 16
def authors?()  @authors && @authors.size > 0;  end
Also aliased as: author?
description?()
Alias for: summary?
published?() click to toggle source
# File lib/feedparser/feed.rb, line 62
def published?()  @published.nil? == false;  end
subtitle?()
Alias for: summary?
summary?() click to toggle source
# File lib/feedparser/feed.rb, line 32
def summary?()  @summary.nil? == false;  end
Also aliased as: description?, subtitle?
tags?() click to toggle source
# File lib/feedparser/feed.rb, line 26
def tags?()  @tags && @tags.size > 0;  end
updated?() click to toggle source
# File lib/feedparser/feed.rb, line 55
def updated?()  @updated.nil? == false;  end