Class: Rtlog::RssPage
Instance Attribute Summary
Attributes inherited from Page
#config, #log, #logger
Instance Method Summary
collapse
Methods inherited from IndexPage
#recent_day_pages, #title
Methods inherited from Page
#config_dir, #index_url, #initialize, #month_pages, #parse, #size, #template_path
Constructor Details
This class inherits a constructor from Rtlog::Page
Instance Method Details
#file_path ⇒ Object
123
124
125
|
# File 'lib/rtlog/pages.rb', line 123
def file_path
File.expand_path( File.join(config['target_dir'], 'feed', 'rss.xml') )
end
|
#generate ⇒ Object
131
132
133
|
# File 'lib/rtlog/pages.rb', line 131
def generate
super(:layout => nil)
end
|
#page_name ⇒ Object
127
128
129
|
# File 'lib/rtlog/pages.rb', line 127
def page_name
'rss'
end
|
#template_file_name ⇒ Object
135
136
137
|
# File 'lib/rtlog/pages.rb', line 135
def template_file_name
'rss.xml.erb'
end
|
#url ⇒ Object
119
120
121
|
# File 'lib/rtlog/pages.rb', line 119
def url
config['url_prefix'] + '/feed/rss'
end
|