Module: PdfEditor::Service
- Included in:
- Bundle, Merge, RotatePage, Shuffle, TableOfContents, TitlePage
- Defined in:
- lib/pdf_editor/mixins/service.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- InterfaceNotImplementedError =
Class.new(StandardError)
- MustPassBlockToAsTempfile =
Class.new(StandardError)
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
- #initialize(args = {}) ⇒ Object
-
#post_init ⇒ Object
overwrite to use the args hash.
Class Method Details
.included(klass) ⇒ Object
9 10 11 |
# File 'lib/pdf_editor/mixins/service.rb', line 9 def self.included(klass) klass.extend ClassMethods end |
Instance Method Details
#call ⇒ Object
22 23 24 |
# File 'lib/pdf_editor/mixins/service.rb', line 22 def call raise InterfaceNotImplementedError, 'Service Interface requires call to be defined' end |
#initialize(args = {}) ⇒ Object
13 14 15 16 |
# File 'lib/pdf_editor/mixins/service.rb', line 13 def initialize(args={}) @args = args post_init end |
#post_init ⇒ Object
overwrite to use the args hash
19 20 |
# File 'lib/pdf_editor/mixins/service.rb', line 19 def post_init end |