lib/nanoc/helpers/blogging.rb in nanoc-3.6.7 vs lib/nanoc/helpers/blogging.rb in nanoc-3.6.8
- old
+ new
@@ -62,19 +62,19 @@
@site = site
@item = item
end
def validate
- self.validate_config
- self.validate_feed_item
- self.validate_articles
+ validate_config
+ validate_feed_item
+ validate_articles
end
def build
buffer = ''
xml = Builder::XmlMarkup.new(:target => buffer, :indent => 2)
- self.build_for_feed(xml)
+ build_for_feed(xml)
buffer
end
protected
@@ -141,11 +141,11 @@
xml.icon icon if icon
xml.logo logo if logo
# Add articles
sorted_relevant_articles.each do |a|
- self.build_for_article(a, xml)
+ build_for_article(a, xml)
end
end
end
def build_for_article(a, xml)
@@ -287,10 +287,10 @@
# @option params [String] :icon The URI of the feed's icon.
#
# @option params [String] :logo The URI of the feed's logo.
#
# @return [String] The generated feed content
- def atom_feed(params={})
+ def atom_feed(params = {})
require 'builder'
# Create builder
builder = AtomFeedBuilder.new(@site, @item)