Parent

Methods

Class Index [+]

Quicksearch

Merb::Rack::Adapter

Public Class Methods

get(id) click to toggle source

Get a rack adapter by id.

Parameters

id

The identifier of the Rack adapter class to retrieve.

Returns.

Class

The adapter class.

:api: private

    # File lib/merb-core/rack/adapter.rb, line 16
16:         def get(id)
17:           if @adapters[id.to_s]
18:             Object.full_const_get(@adapters[id.to_s])
19:           else
20:             Merb.fatal! "The adapter #{id} did not exist"
21:           end
22:         end
register(ids, adapter_class) click to toggle source

Registers a new Rack adapter.

Parameters

ids

Identifiers by which this adapter is recognized by.

adapter_class

The Rack adapter class.

:api: plugin

    # File lib/merb-core/rack/adapter.rb, line 31
31:         def register(ids, adapter_class)
32:           @adapters ||= Hash.new
33:           ids.each { |id| @adapters[id] = "Merb::Rack::#{adapter_class}" }
34:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.