Class: ProgressiveRender::Rails::PathResolver::TemplateContext
- Inherits:
-
Object
- Object
- ProgressiveRender::Rails::PathResolver::TemplateContext
- Defined in:
- lib/progressive_render/rails/path_resolver.rb
Overview
Holds the request parameters. Used to decouple the ProgressiveRequest from the renderer.
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#controller ⇒ Object
Returns the value of attribute controller.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
8 9 10 |
# File 'lib/progressive_render/rails/path_resolver.rb', line 8 def action @action end |
#controller ⇒ Object
Returns the value of attribute controller.
8 9 10 |
# File 'lib/progressive_render/rails/path_resolver.rb', line 8 def controller @controller end |
#type ⇒ Object
Returns the value of attribute type.
8 9 10 |
# File 'lib/progressive_render/rails/path_resolver.rb', line 8 def type @type end |
Instance Method Details
#valid? ⇒ Boolean
10 11 12 |
# File 'lib/progressive_render/rails/path_resolver.rb', line 10 def valid? valid_type? && valid_controller? && valid_action? end |