Module Ruport::Controller::Hooks::ClassMethods
In: lib/ruport/controller.rb

Methods

Public Instance methods

The class of the controller object for the base class.

Example:

  >> Ruport::Data::Table.controller
  => Ruport::Controller::Table

The default rendering options for a class, stored as a hash.

Shortcut for renders_with(Ruport::Controller::Group), you may wish to override this if you build a custom group controller.

Shortcut for renders_with(Ruport::Controller::Grouping), you may wish to override this if you build a custom grouping controller.

Shortcut for renders_with(Ruport::Controller::Row), you may wish to override this if you build a custom row controller.

Shortcut for renders_with(Ruport::Controller::Table), you may wish to override this if you build a custom table controller.

Tells the class which controller as() will forward to.

Usage:

  class MyStructure
    include Controller::Hooks
    renders_with CustomController
  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 Controller::Hooks
    renders_with CustomController, :font_size => 14
  end

[Validate]