Module: Caracal::Core::PageBreaks
- Included in:
- Document
- Defined in:
- lib/caracal/core/page_breaks.rb
Overview
This module encapsulates all the functionality related to adding page breaks to the document.
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/caracal/core/page_breaks.rb', line 11 def self.included(base) base.class_eval do #------------------------------------------------------------- # Public Methods #------------------------------------------------------------- def page model = Caracal::Core::Models::PageBreakModel.new() contents << model model end end end |