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