class PdfEditor::TitlePage
Attributes
title[R]
Public Instance Methods
call()
click to toggle source
# File lib/pdf_editor/title_page.rb, line 17 def call unless title raise Errors::TitlePageTitleError, 'Title page requires a title to operate' end PdfEditor::Resource.new( create_tempfile {create_pdf}, title ) end
post_init()
click to toggle source
# File lib/pdf_editor/title_page.rb, line 13 def post_init @title = args[:title] end
Private Instance Methods
create_pdf()
click to toggle source
# File lib/pdf_editor/title_page.rb, line 29 def create_pdf update_pdf do move_down 30 text title, size: 40, align: :center end to_pdf end