Sha256: 5eba0079daf694fdb2594bc7ca4de7e3ce88a02dc4dd977b9400fc82eef87ea1

Contents?: true

Size: 214 Bytes

Versions: 11

Compression:

Stored size: 214 Bytes

Contents

$:.unshift( "../lib" )
require 'capcode'

module Capcode
  set :server, :webrick
  set :port, 1111

  class Index < Route '/'
    def get
      render "Hello World"
    end
  end  
end

Capcode.run( :port => 2222 )

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
Capcode-1.0.0 examples/render-text.rb
Capcode-0.9.9 examples/render-text.rb
Capcode-0.9.8 examples/render-text.rb
Capcode-0.9.7 examples/render-text.rb
Capcode-0.9.6 examples/render-text.rb
Capcode-0.9.5 examples/render-text.rb
Capcode-0.9.4 examples/render-text.rb
Capcode-0.9.3 examples/render-text.rb
Capcode-0.9.2 examples/render-text.rb
Capcode-0.9.1 examples/render-text.rb
Capcode-0.9.0 examples/render-text.rb