Class: Tzispa::Engine::Rig::Layout
- Inherits:
-
Controller::Http
- Object
- Controller::Base
- Controller::Http
- Tzispa::Engine::Rig::Layout
- Includes:
- Helpers::Response
- Defined in:
- lib/tzispa/engine/rig/layout.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Controller::Http
Attributes inherited from Controller::Base
#application, #callmethod, #context, #context_class
Instance Method Summary collapse
-
#initialize(app) ⇒ Layout
constructor
A new instance of Layout.
- #render! ⇒ Object
Methods inherited from Controller::Http
Methods inherited from Controller::Base
Constructor Details
#initialize(app) ⇒ Layout
Returns a new instance of Layout.
16 17 18 |
# File 'lib/tzispa/engine/rig/layout.rb', line 16 def initialize(app) super app, :render!, Tzispa::Engine::Rig::Context, true end |
Instance Method Details
#render! ⇒ Object
20 21 22 23 24 25 |
# File 'lib/tzispa/engine/rig/layout.rb', line 20 def render! layout_template.tap do |rig| response.body << rig.render(context) content_type rig.content_type end end |