Class: Serve::DynamicHandler::Context

Inherits:
Object
  • Object
show all
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)

Instance Method Summary (collapse)

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

#boolean_param, #params

Methods included from FlashHelpers

#flash

Methods included from ContentHelpers

#capture, #capture_erb, #content_for, #content_for?, #get_content_for, #set_content_for

Methods included from EscapeHelpers

#html_escape, #json_escape

Constructor Details

- (Context) initialize(root_path, request, response)

Returns 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