Class: RGhost::DynamicDocumentCallback

Inherits:
Callback
  • Object
show all
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

Constructor Details

#initialize(name, options = {}, &block) ⇒ DynamicDocumentCallback

Returns a new instance of DynamicDocumentCallback.

Raises:

  • (NameError)


10
11
12
13
# File 'lib/rghost/dynamic_document_callback.rb', line 10

def initialize(name,options={},&block)
  raise NameError.new("#{name} no accept in #{self.class}") unless ACCEPT.include? name
  super(name,options,&block)
end