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
- #halt(*params) ⇒ Object
-
#initialize(dispatcher) ⇒ Controller
constructor
A new instance of Controller.
- #params ⇒ Object
- #path_to(*params) ⇒ Object
- #request ⇒ 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 |
#halt(*params) ⇒ Object
24 25 26 |
# File 'lib/flame/controller.rb', line 24 def halt(*params) @dispatcher.halt(*params) end |
#params ⇒ Object
20 21 22 |
# File 'lib/flame/controller.rb', line 20 def params @dispatcher.params end |
#path_to(*params) ⇒ Object
28 29 30 |
# File 'lib/flame/controller.rb', line 28 def path_to(*params) @dispatcher.path_to(*params) end |
#request ⇒ Object
16 17 18 |
# File 'lib/flame/controller.rb', line 16 def request @dispatcher.request end |