Method: Ink::Controller#initialize

Defined in:
lib/webink/controller.rb

#initialize(params) ⇒ Controller

Constructor

Creates a new controller of the derived class. params are the globals set by the dispatcher, and include keys like: :get, :post and :config. Also the matched routes are put there, :controller, :module and any parameters like :id or :page that were retrieved from the routes.

param params:

Hash of Symbol => Objects



158
159
160
# File 'lib/webink/controller.rb', line 158

def initialize(params)
  @params = params
end