Class: RGhost::DynamicDocumentCallback
- Inherits:
-
Callback
- Object
- Callback
- RGhost::DynamicDocumentCallback
- Defined in:
- lib/rghost/dynamic_document_callback.rb
Overview
:nodoc:
Constant Summary collapse
- ACCEPT =
[:before_page_create, :after_page_create, :odd_pages, :even_pages ]
Instance Method Summary collapse
-
#initialize(name, options = {}, &block) ⇒ DynamicDocumentCallback
constructor
A new instance of DynamicDocumentCallback.
Constructor Details
#initialize(name, options = {}, &block) ⇒ DynamicDocumentCallback
Returns a new instance of DynamicDocumentCallback.
10 11 12 13 |
# File 'lib/rghost/dynamic_document_callback.rb', line 10 def initialize(name,={},&block) raise NameError.new("#{name} no accept in #{self.class}") unless ACCEPT.include? name super(name,,&block) end |