It uses WEBrick HTTP server.
ruby -run -e httpd . -p 5000
Here is the explanintion for it. Here you can see
-run but it actually we are using
-r option, like
-r<library> option will
require the library before executing your script. When we say
-run it will load
un.rb in the ruby path.
un.rb comes along with ruby installation.
-e <command> option will run the one line script. Here the
un.rb have a method called
httpd since we already loaded
-r option we can execute the httpd method using
After the command, the
. indicates the current directory and
-p to specify the port.