Module: Template::Handlers::Prawn::DocumentProxy

Defined in:
lib/prawn_handler.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *args, &block) ⇒ Object (private)



21
22
23
# File 'lib/prawn_handler.rb', line 21

def method_missing(method, *args, &block)
  pdf.respond_to?(method) ? pdf.send(method, *args, &block) : super
end

Instance Method Details

#pdfObject



15
16
17
# File 'lib/prawn_handler.rb', line 15

def pdf
  @pdf ||= ::Prawn::Document.new
end