Module | Ruport::Renderer::Hooks::ClassMethods |
In: |
lib/ruport/renderer.rb
|
The class of the renderer object for the base class.
Example:
>> Ruport::Data::Table.renderer => Ruport::Renderer::Table
Shortcut for renders_with(Ruport::Renderer::Group), you may wish to override this if you build a custom group renderer.
Shortcut for renders_with(Ruport::Renderer::Grouping), you may wish to override this if you build a custom grouping renderer.
Shortcut for renders_with(Ruport::Renderer::Row), you may wish to override this if you build a custom row renderer.
Shortcut for renders_with(Ruport::Renderer::Table), you may wish to override this if you build a custom table renderer.
Tells the class which renderer as() will forward to.
Usage:
class MyStructure include Renderer::Hooks renders_with CustomRenderer end
You can also specify default rendering options, which will be used if they are not overriden by the options passed to as().
class MyStructure include Renderer::Hooks renders_with CustomRenderer, :font_size => 14 end