File: doc/syntax_highlighter/tests/webrick.rb

Recommend this page to a friend!
  Classes of Everton da Rosa  >  PHP4Console  >  doc/syntax_highlighter/tests/webrick.rb  >  Download  
File: doc/syntax_highlighter/tests/webrick.rb
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP4Console
Render text and shapes in a terminal console
Author: By
Last change:
Date: 5 years ago
Size: 276 bytes


require 'webrick'
include WEBrick

s =
  :Port => 2010, 
  :DocumentRoot => Dir::pwd
s.mount('/sh/scripts', WEBrick::HTTPServlet::FileHandler, '../scripts')
s.mount('/sh/styles', WEBrick::HTTPServlet::FileHandler, '../styles')
trap('INT') { s.stop }

For more information send a message to info at phpclasses dot org.