class Rack::ServerPages::Binding

Attributes

request[R]
response[R]

Public Class Methods

extended_class(helpers) click to toggle source
# File lib/rack/server_pages.rb, line 323
def extended_class(helpers)
  Class.new(self).tap { |k| k.setup(helpers) }
end
new(env) click to toggle source
# File lib/rack/server_pages.rb, line 334
def initialize(env)
  @request  = Rack::Request.new(env)
  @response = Rack::Response.new
  # @response['Content-Type'] = nil
end
setup(helpers) click to toggle source
# File lib/rack/server_pages.rb, line 327
def setup(helpers)
  helpers.each do |helper|
    helper.is_a?(Module) ? class_eval { include helper } : class_eval(&helper)
  end
end

Public Instance Methods

_binding() click to toggle source
# File lib/rack/server_pages.rb, line 340
def _binding
  binding
end