class WAB::Racker

A Racker or a duck-typed alternative should be created and registered with a Shell for paths that expected to follow the Ruby rack API. The shell is included so that queries can be made when responding to requests.

Attributes

shell[RW]

Public Class Methods

new(shell) click to toggle source

Create a instance.

# File lib/wab/racker.rb, line 10
def initialize(shell)
  @shell = shell
end

Public Instance Methods

call(env) click to toggle source

Rack handler for processing rack requests. Implemenation should follow the rack API described at rack.github.io.

env

data to be processed

return

a rack compliant response.

# File lib/wab/racker.rb, line 20
def call(env)
  [200, {}, ['A WABuR Rack Application']]
end