require 'jimson' class MyHandler extend Jimson::Handler def initi(a,b) a + b end def initialize super end end server = Jimson::Server.new(MyHandler.new) server.port = 5007 server.host = '127.0.0.1' server.start # serve with webrick on http://0.0.0.0:8999/