Parent

Methods

Capybara::Server::Identify

Public Class Methods

new(app) click to toggle source
# File lib/capybara/server.rb, line 7
def initialize(app)
  @app = app
end

Public Instance Methods

call(env) click to toggle source
# File lib/capybara/server.rb, line 11
def call(env)
  if env["PATH_INFO"] == "/__identify__"
    [200, {}, @app.object_id.to_s]
  else
    @app.call(env)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.