Class: Flame::Controller
- Inherits:
-
Object
- Object
- Flame::Controller
- Includes:
- Render
- Defined in:
- lib/flame/controller.rb
Overview
Class for controllers helpers, like Framework::Controller
Instance Method Summary collapse
- #config ⇒ Object
-
#initialize(dispatcher) ⇒ Controller
constructor
A new instance of Controller.
- #params ⇒ Object
- #path_to(*params) ⇒ Object
Methods included from Render
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 |