method
mount_proc
mount_proc(dir, proc=nil, &block)
public
Hide source
# File lib/webrick/httpserver.rb, line 123 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