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
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
#pdf ⇒ Object
15
16
17
|
# File 'lib/prawn_handler.rb', line 15
def pdf
@pdf ||= ::Prawn::Document.new
end
|