Class: ClWiki::CustomFooters

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/cl_wiki/page.rb

Instance Method Summary collapse

Instance Method Details

#process_footers(page) ⇒ Object



446
447
448
449
450
451
452
# File 'lib/cl_wiki/page.rb', line 446

def process_footers(page)
  content = ''
  @footers.each do |f|
    content << f.footer_html(page)
  end if @footers
  return content
end

#register(class_ref) ⇒ Object



441
442
443
444
# File 'lib/cl_wiki/page.rb', line 441

def register(class_ref)
  @footers ||= []
  @footers << class_ref
end