Class: Gambas::PDF
- Inherits:
-
Object
- Object
- Gambas::PDF
- Defined in:
- lib/gambas.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#call(template) ⇒ Object
delegates to the default ERB handler to return the source as is this means that the instatiation of the Prawn::Document will happen in the renderer.
Class Method Details
.call(template) ⇒ Object
38 39 40 |
# File 'lib/gambas.rb', line 38 def self.call (template) return new.call(template) end |
Instance Method Details
#call(template) ⇒ Object
delegates to the default ERB handler to return the source as is this means that the instatiation of the Prawn::Document will happen in the renderer
45 46 47 48 |
# File 'lib/gambas.rb', line 45 def call (template) handler = ActionView::Template.registered_template_handler("erb") handler.call(template) end |