Sha256: cacb9c3d758ec22d370ca56c32dfb5f416c7edb44bc89a2697d1fde34d3da2ac
Contents?: true
Size: 375 Bytes
Versions: 4
Compression:
Stored size: 375 Bytes
Contents
module Allegro class Archives < Array include Template def initialize articles, config self.replace articles @config = config end def [] a a.is_a?(Range) ? self.class.new(self.slice(a) || [], @config) : super end def to_html super(:archives, @config) end alias :to_s to_html alias :archive archives end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
allegro-0.0.0pre3 | lib/allegro/archives.rb |
allegro-0.0.0pre2 | lib/allegro/archives.rb |
allegro-0.0.0pre1 | lib/allegro/archives.rb |
allegro-0.0.0pre | lib/allegro/archives.rb |