public Method

HTTPServer.mount_proc(dir, proc=nil, &block)

There's no documentation for this item.

Source Code

# File webrick/httpserver.rb, line 116
def mount_proc(dir, proc=nil, &block)
  proc ||= block
  raise HTTPServerError, "must pass a proc or block" unless proc
  mount(dir, HTTPServlet::ProcHandler.new(proc))
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.