ruby-win32/lib/ruby/gems/1.8/gems/mongrel-1.1.3-x86-mswin32/lib/mongrel/uri_classifier.rb
# Register a handler object at a particular URI. The handler can be whatever 
# you want, including an array. It's up to you what to do with it.
#
# Registering a handler is not necessarily threadsafe, so be careful if you go
# mucking around once the server is running.
Register a handler object at a particular URI. The handler can be whatever
you want, including an array. It's up to you what to do with it.

Registering a handler is not necessarily threadsafe, so be careful if you go
mucking around once the server is running.
Register a handler object at a particular URI . The handler can be whatever you want including an array . It ' s up to you what to do with it . Registering a handler is not necessarily threadsafe so be careful if you go mucking around once the server is running .
def register(uri, handler)
      raise RegistrationError, "#{uri.inspect} is already registered" if @handler_map[uri]
      raise RegistrationError, "URI is empty" if !uri or uri.empty?
      raise RegistrationError, "URI must begin with a \"#{Const::SLASH}\"" unless uri[0..0] == Const::SLASH
      @handler_map[uri.dup] = handler
      rebuild
    end
def register ( uri , handler ) raise RegistrationError , "#{uri.inspect} is already registered" if @handler_map [ uri ] raise RegistrationError , "URI is empty" if ! uri or uri . empty? raise RegistrationError , "URI must begin with a \"#{Const::SLASH}\"" unless uri [ 0 .. 0 ] == Const :: SLASH @handler_map [ uri . dup ] = handler rebuild end
Register a handler object at a particular URI.
Register a handler object at a particular URI .
uri
handler