lib/nanoc/cli/commands/show-rules.rb in nanoc-3.7.3 vs lib/nanoc/cli/commands/show-rules.rb in nanoc-3.7.4

- old
+ new

@@ -1,10 +1,10 @@ # encoding: utf-8 -usage 'show-rules [thing]' -aliases :explain -summary 'describe the rules for each item' +usage 'show-rules [thing]' +aliases :explain +summary 'describe the rules for each item' description " Prints the rules used for all items and layouts in the current site. " module Nanoc::CLI::Commands @@ -23,10 +23,10 @@ site.items.each { |i| explain_item(i) } site.layouts.each { |l| explain_layout(l) } end - protected + protected def explain_item(item) puts "#{@c.c('Item ' + item.identifier, :bold, :yellow)}:" puts " (from #{item[:filename]})" if item[:filename] item.reps.each do |rep|