Class RSS::Maker::ItemsBase::ItemBase
In: rss/maker/base.rb
rss/maker/content.rb
rss/maker/image.rb
rss/maker/dublincore.rb
rss/maker/trackback.rb
rss/maker/taxonomy.rb
Parent: Object

Methods

Included Modules

Base ContentModel Maker::ImageItemModel DublinCoreModel TrackBackModel TaxonomyTopicsModel

Classes and Modules

Class RSS::Maker::ItemsBase::ItemBase::EnclosureBase
Class RSS::Maker::ItemsBase::ItemBase::GuidBase
Class RSS::Maker::ItemsBase::ItemBase::SourceBase

Constants

CategoriesBase = ChannelBase::CategoriesBase

External Aliases

date -> pubDate
date= -> pubDate=
dc_date -> date
dc_date= -> date=

Public Instance methods

[Source]

# File rss/maker/base.rb, line 487
        def <=>(other)
          if date and other.date
            date <=> other.date
          elsif date
            1
          elsif other.date
            -1
          else
            0
          end
        end

[Source]

# File rss/maker/base.rb, line 499
        def current_element(rss)
          rss.items.last
        end

[Validate]

ruby-doc.org is hosted and maintained by James Britt and Happy Camper Studios, a Ruby application development company in Phoenix, Arizona. The site was created in 2002 as part of the Ruby Documentation Project to promote the Ruby language and to help other Ruby hackers.

Documentation content on ruby-doc.org is provided by remarkable members of the Ruby community.

For more information on the Ruby programming language, visit ruby-lang.org.

Want to help improve Ruby's API docs? See Ruby Documentation Guidelines.