Class: AutomaticOnePageIndex
- Inherits:
-
Object
- Object
- AutomaticOnePageIndex
- Defined in:
- lib/helpers/default-helpers.rb
Instance Method Summary collapse
-
#initialize(wiki, pagename = "Site Index", author = "AutomaticIndex") ⇒ AutomaticOnePageIndex
constructor
A new instance of AutomaticOnePageIndex.
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", = "AutomaticIndex" ) AutomaticList.new( wiki, pagename, :author => , :sort_pages_by => :name_for_index ) do |page| page.name !~ /#{Regexp.escape(pagename)}/io end end |