Class: Crystal::ControllerContext

Inherits:
TemplateContext show all
Includes:
NamedRouter::Helper
Defined in:
lib/crystal/controller/controller_context.rb

Instance Attribute Summary

Attributes inherited from TemplateContext

#_tilt_template, #content_block, #options, #scope_variables

Instance Method Summary collapse

Methods inherited from TemplateContext

#content_for, #content_variables, #has_content_for?, #params, #prepend_to, #wrap_content_for

Methods included from Tilt::ContextExt

#capture, #concat, #output

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Crystal::NamedRouter::Helper

Instance Method Details

#controllerObject



3
4
5
# File 'lib/crystal/controller/controller_context.rb', line 3

def controller
  workspace.controller.must_be.defined
end