Class: Rad::Controller::Context
- Inherits:
-
Template::Context
- Object
- Template::Context
- Rad::Controller::Context
- Defined in:
- lib/rad/controller/_context.rb
Instance Attribute Summary collapse
-
#action_name ⇒ Object
readonly
Returns the value of attribute action_name.
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#controller_name ⇒ Object
readonly
Returns the value of attribute controller_name.
Attributes inherited from Template::Context
#_tilt_template, #content_block, #scope_variables
Instance Method Summary collapse
-
#initialize(instance_variables, controller) ⇒ Context
constructor
A new instance of Context.
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
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_name ⇒ Object (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 |
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
2 3 4 |
# File 'lib/rad/controller/_context.rb', line 2 def controller @controller end |
#controller_name ⇒ Object (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 |