module Caracal::Core::PageBreaks
This module encapsulates all the functionality related to adding page breaks to the document.
Public Class Methods
included(base)
click to toggle source
# 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
Public Instance Methods
page()
click to toggle source
# File lib/caracal/core/page_breaks.rb, line 18 def page model = Caracal::Core::Models::PageBreakModel.new() contents << model model end