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



345
346
347
348
349
350
351
# File 'lib/cl_wiki/page.rb', line 345

def process_footers(page)
  String.new.tap do |content|
    @footers&.each do |f|
      content << f.footer_html(page)
    end
  end
end

#register(class_ref) ⇒ Object



340
341
342
343
# File 'lib/cl_wiki/page.rb', line 340

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