Created
August 21, 2009 02:37
-
-
Save jedediah/171608 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'gserver' | |
def listen port=9999, &block | |
Class.new GServer do | |
define_method :serve, &block | |
end.new(port).start | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment