Class: ClWiki::CustomFooters

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

Instance Method Summary collapse

Instance Method Details

#process_footers(page) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/cl_wiki/custom_footers.rb', line 10

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



5
6
7
8
# File 'lib/cl_wiki/custom_footers.rb', line 5

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