Class: Flame::Controller

Inherits:
Object
  • Object
show all
Includes:
Render
Defined in:
lib/flame/controller.rb

Overview

Class for controllers helpers, like Framework::Controller

Instance Method Summary collapse

Methods included from Render

#view

Constructor Details

#initialize(dispatcher) ⇒ Controller

Returns a new instance of Controller.



8
9
10
# File 'lib/flame/controller.rb', line 8

def initialize(dispatcher)
	@dispatcher = dispatcher
end

Instance Method Details

#config ⇒ Object



12
13
14
# File 'lib/flame/controller.rb', line 12

def config
	@dispatcher.config
end

#params ⇒ Object



16
17
18
# File 'lib/flame/controller.rb', line 16

def params
	@dispatcher.params
end

#path_to(*params) ⇒ Object



20
21
22
# File 'lib/flame/controller.rb', line 20

def path_to(*params)
	@dispatcher.path_to(*params)
end