Class: AutomaticList

Inherits:
AutomaticSummary show all
Defined in:
lib/helpers/default-helpers.rb

Direct Known Subclasses

AutomaticDetailedList

Constant Summary

Constants inherited from AutomaticSummary

AutomaticSummary::DEFAULT_SETTINGS

Instance Attribute Summary

Attributes inherited from AutomaticSummary

#decision, #name, #settings, #summary, #wiki

Instance Method Summary collapse

Methods inherited from AutomaticSummary

#add_existing_pages, #check_new, #confirm_old, #initialize, #new_tail, #new_top, #remove_previous_revisions, #render_summary_of_page, #render_summary_page, #scan_pages_allready_in_wiki, #scan_revisions_allready_in_wiki, #start_watching, #summarise?

Constructor Details

This class inherits a constructor from AutomaticSummary

Instance Method Details

#render_list_item(page) ⇒ Object



187
188
189
# File 'lib/helpers/default-helpers.rb', line 187

def render_list_item( page )
	"* [[ #{page.name} ]]\n"
end

#render_summaryObject



183
184
185
# File 'lib/helpers/default-helpers.rb', line 183

def render_summary
	summary.map { |page| render_list_item(page) }.to_s
end