Sha256: 234601b804aeb420d03e466638a298a79f521f276c1bb0d270ec22caf6412439
Contents?: true
Size: 399 Bytes
Versions: 2
Compression:
Stored size: 399 Bytes
Contents
#\ -w -p 8765 use Rack::Reloader, 0 use Rack::ContentLength require 'pp' require 'hubris' class Fibonacci hubris :source => 'Fibonacci.hs' end def arg_from env env['REQUEST_URI'] ? env['REQUEST_URI'].to_s.sub(/^\//, '').to_i : 0 end app = proc do |env| value = Fibonacci.new.fibonacci( arg_from env ) [ 200, {'Content-Type' => 'text/plain'}, "The fib number is #{value }" ] end run app
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hubris-0.0.3 | sample/config.ru |
hubris-0.0.2 | sample/config.ru |