Class: Serve::DynamicHandler::Context
- Inherits:
-
Object
- Object
- Serve::DynamicHandler::Context
- Includes:
- ViewHelpers
- Defined in:
- lib/serve/handlers/dynamic_handler.rb
Overview
:nodoc:
Constant Summary
Constant Summary
Constants included from EscapeHelpers
EscapeHelpers::HTML_ESCAPE, EscapeHelpers::JSON_ESCAPE
Instance Attribute Summary (collapse)
-
- (Object) content
Returns the value of attribute content.
-
- (Object) parser
Returns the value of attribute parser.
-
- (Object) request
readonly
Returns the value of attribute request.
-
- (Object) response
readonly
Returns the value of attribute response.
Instance Method Summary (collapse)
-
- (Context) initialize(root_path, request, response)
constructor
A new instance of Context.
Methods included from TagHelpers
#content_tag, #image, #image_tag, #javascript_tag, #link_to, #link_to_function, #mail_to, #tag
Methods included from RenderHelpers
#render, #render_partial, #render_template
Methods included from ParamHelpers
Methods included from FlashHelpers
Methods included from ContentHelpers
#capture, #capture_erb, #content_for, #content_for?, #get_content_for, #set_content_for
Methods included from EscapeHelpers
Constructor Details
- (Context) initialize(root_path, request, response)
A new instance of Context
103 104 105 106 |
# File 'lib/serve/handlers/dynamic_handler.rb', line 103 def initialize(root_path, request, response) @root_path, @request, @response = root_path, request, response @content = '' end |
Instance Attribute Details
- (Object) content
Returns the value of attribute content
100 101 102 |
# File 'lib/serve/handlers/dynamic_handler.rb', line 100 def content @content end |
- (Object) parser
Returns the value of attribute parser
100 101 102 |
# File 'lib/serve/handlers/dynamic_handler.rb', line 100 def parser @parser end |
- (Object) request (readonly)
Returns the value of attribute request
101 102 103 |
# File 'lib/serve/handlers/dynamic_handler.rb', line 101 def request @request end |
- (Object) response (readonly)
Returns the value of attribute response
101 102 103 |
# File 'lib/serve/handlers/dynamic_handler.rb', line 101 def response @response end |