Class: Rad::Controller::Context

Inherits:
Template::Context show all
Defined in:
lib/rad/controller/_context.rb

Instance Attribute Summary collapse

Attributes inherited from Template::Context

#_tilt_template, #content_block, #scope_variables

Instance Method Summary collapse

Methods inherited from Template::Context

#blank?, #content_for, #content_variables, #find_relative_template, #has_content_for?, #j, #prepend_to, #present?, #wrap_content_for

Methods included from Tilt::ContextExt

#capture, #concat, #output

Constructor Details

#initialize(instance_variables, controller) ⇒ Context

Returns a new instance of Context.



5
6
7
8
# File 'lib/rad/controller/_context.rb', line 5

def initialize instance_variables, controller
  super instance_variables
  @controller = controller
end

Instance Attribute Details

#action_nameObject (readonly)

Returns the value of attribute action_name.



2
3
4
# File 'lib/rad/controller/_context.rb', line 2

def action_name
  @action_name
end

#controllerObject (readonly)

Returns the value of attribute controller.



2
3
4
# File 'lib/rad/controller/_context.rb', line 2

def controller
  @controller
end

#controller_nameObject (readonly)

Returns the value of attribute controller_name.



2
3
4
# File 'lib/rad/controller/_context.rb', line 2

def controller_name
  @controller_name
end