Sha256: 5171235db3991588585f886456e990ec4cbe0041d85ee947808fdc82f53d8bf3
Contents?: true
Size: 726 Bytes
Versions: 46
Compression:
Stored size: 726 Bytes
Contents
# # makerss_comment.rb: extension for makerss plugin. # # Copyright (C) 2007 by SHIBATA Hiroshi <h-sbt@nifty.com> # Distributed under GPL2. # class MakeRssComments < MakeRssFull def title '(comments only)' end def item( seq, body, rdfsec ) return if rdfsec.section.respond_to?( :body_to_html ) super end def file f = @conf['makerss.no_comments.file'] || 'comments.rdf' f = 'comments.rdf' if f.length == 0 f =~ %r|^/| ? f : "#{document_root}/#{f}" end def write( encoder ) super( encoder ) end def url u = @conf['makerss.no_comments.url'] || "#{@conf.base_url}comments.rdf" u = "#{@conf.base_url}comments.rdf" if u.length == 0 u end end @makerss_rsses << MakeRssComments::new( @conf, @cgi )
Version data entries
46 entries across 40 versions & 2 rubygems