Module: AsyncRack

Defined in:
lib/async_rack.rb,
lib/async_rack/etag.rb,
lib/async_rack/head.rb,
lib/async_rack/lock.rb,
lib/async_rack/logger.rb,
lib/async_rack/chunked.rb,
lib/async_rack/runtime.rb,
lib/async_rack/deflater.rb,
lib/async_rack/sendfile.rb,
lib/async_rack/showstatus.rb,
lib/async_rack/catch_async.rb,
lib/async_rack/throw_async.rb,
lib/async_rack/commonlogger.rb,
lib/async_rack/content_type.rb,
lib/async_rack/session/pool.rb,
lib/async_rack/async_callback.rb,
lib/async_rack/conditionalget.rb,
lib/async_rack/content_length.rb,
lib/async_rack/session/cookie.rb,
lib/async_rack/session/memcache.rb

Defined Under Namespace

Modules: AsyncCallback, BaseMixin, ExtensionMixin, Session Classes: CatchAsync, Chunked, CommonLogger, ConditionalGet, ContentLength, ContentType, Deflater, ETag, Head, Lock, Logger, Runtime, Sendfile, ShowStatus, ThrowAsync

Class Method Summary collapse

Class Method Details

.AsyncCallback(name, namespace = Rack) ⇒ Object

See Also:



5
6
7
8
9
10
11
# File 'lib/async_rack/async_callback.rb', line 5

def self.AsyncCallback(name, namespace = Rack)
  @wrapped ||= Hash.new { |h,k| h[k] = {} }
  @wrapped[namespace][name.to_sym] ||= namespace.const_get(name).tap do |klass|
    klass.extend AsyncCallback::InheritanceHook
    klass.alias_subclass name, namespace
  end
end