Module: Caracal::Core::Footer

Included in:
Document
Defined in:
lib/caracal/core/footer.rb

Overview

This module encapsulates all the functionality related to adding a footer on every page of the document.

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# File 'lib/caracal/core/footer.rb', line 12

def self.included(base)
  base.class_eval do

    #-------------------------------------------------------------
    # Public Methods
    #-------------------------------------------------------------

    def footer(*args, &block)
      options = Caracal::Utilities.extract_options!(args)

      model = Caracal::Core::Models::FooterModel.new(options, &block)

      @footer_content = model

      model
    end

  end
end