class Zenweb::SeriesPage

Attributes

series[RW]

Public Class Methods

all() click to toggle source
# File lib/zenweb/page.rb, line 602
def self.all
  @@all ||= {}
end
generate_all(site, dir, pages) click to toggle source
# File lib/zenweb/page.rb, line 610
def self.generate_all site, dir, pages
  series_for(pages).sort.each do |series, pgs|
    next unless series
    path = series.downcase.gsub(/\W/, '-')
    path = "#{dir}/#{path}.html.md.erb"
    self.all[series] = self.new(site, path, pgs, series)
  end
end
new(site, path, pages, series) click to toggle source
Calls superclass method Zenweb::GeneratedIndex::new
# File lib/zenweb/page.rb, line 619
def initialize site, path, pages, series
  super site, path, pages
  self.series = series
end
series_for(pages) click to toggle source
# File lib/zenweb/page.rb, line 606
def self.series_for pages
  collate_by pages, :series
end