Class: RSS::Maker::ItemsBase::ItemBase

Inherits:
Object
  • Object
show all
Includes:
Base, ContentModel, DublinCoreModel, RSS::Maker::ImageItemModel, TaxonomyTopicsModel, TrackBackModel
Defined in:
lib/rss/maker/base.rb,
lib/rss/maker/image.rb,
lib/rss/maker/content.rb,
lib/rss/maker/taxonomy.rb,
lib/rss/maker/trackback.rb,
lib/rss/maker/dublincore.rb

Defined Under Namespace

Classes: EnclosureBase, GuidBase, SourceBase

Constant Summary collapse

CategoriesBase =
ChannelBase::CategoriesBase

Instance Method Summary collapse

Methods included from DublinCoreModel

append_features, install_dublin_core

Methods included from TrackBackModel

append_features

Methods included from TaxonomyTopicsModel

append_features, install_taxo_topics

Methods included from ContentModel

append_features

Methods included from RSS::Maker::ImageItemModel

append_features

Methods included from Base

append_features, #have_required_values?, #initialize

Instance Method Details

#<=>(other) ⇒ Object



483
484
485
486
487
488
489
490
491
492
493
# File 'lib/rss/maker/base.rb', line 483

def <=>(other)
  if date and other.date
    date <=> other.date
  elsif date
    1
  elsif other.date
    -1
  else
    0
  end
end

#current_element(rss) ⇒ Object



495
496
497
# File 'lib/rss/maker/base.rb', line 495

def current_element(rss)
  rss.items.last
end