Class: AutomaticOnePageIndex

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

Instance Method Summary collapse

Constructor Details

#initialize(wiki, pagename = "Site Index", author = "AutomaticIndex") ⇒ AutomaticOnePageIndex

Returns a new instance of AutomaticOnePageIndex.



234
235
236
237
238
# File 'lib/helpers/default-helpers.rb', line 234

def initialize( wiki, pagename = "Site Index", author = "AutomaticIndex"  )
	AutomaticList.new( wiki, pagename, :author => author, :sort_pages_by => :name_for_index ) do |page|
		page.name !~ /#{Regexp.escape(pagename)}/io
	end
end