In Files

  • rss-0.2.9/lib/rss/maker/base.rb
  • rss-0.2.9/lib/rss/maker/content.rb
  • rss-0.2.9/lib/rss/maker/dublincore.rb
  • rss-0.2.9/lib/rss/maker/image.rb
  • rss-0.2.9/lib/rss/maker/itunes.rb
  • rss-0.2.9/lib/rss/maker/slash.rb
  • rss-0.2.9/lib/rss/maker/taxonomy.rb
  • rss-0.2.9/lib/rss/maker/trackback.rb

Class/Module Index [+]

Quicksearch

RSS::Maker::ItemsBase

Attributes

do_sort[RW]
max_size[RW]

Public Class Methods

new(maker) click to toggle source
 
               # File rss-0.2.9/lib/rss/maker/base.rb, line 676
def initialize(maker)
  super
  @do_sort = false
  @max_size = -1
end
            

Public Instance Methods

normalize() click to toggle source
 
               # File rss-0.2.9/lib/rss/maker/base.rb, line 682
def normalize
  if @max_size >= 0
    sort_if_need[0...@max_size]
  else
    sort_if_need[0..@max_size]
  end
end