Class: ClWiki::CustomFooters
- Inherits:
-
Object
- Object
- ClWiki::CustomFooters
- 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 (page) String.new.tap do |content| @footers&.each do |f| content << f.(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 |