Class: RGhost::StaticDocumentCallback
- Defined in:
- lib/rghost/static_document_callback.rb
Overview
:nodoc:
Constant Summary collapse
- ACCEPT =
[:before_document_create, :first_page, :last_page, :after_document_create ]
Instance Attribute Summary
Attributes inherited from Function
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ StaticDocumentCallback
constructor
A new instance of StaticDocumentCallback.
Methods inherited from Function
Methods inherited from PsObject
#<<, #call, #graphic_scope, #ps, #raw, #set, #to_s
Constructor Details
#initialize(name, &block) ⇒ StaticDocumentCallback
Returns a new instance of StaticDocumentCallback.
11 12 13 14 |
# File 'lib/rghost/static_document_callback.rb', line 11 def initialize(name,&block) raise NameError.new("#{name} no accept in #{self.class}") unless ACCEPT.include? name super(name,&block) end |