Sha256: be945a40c7aed91a11bd6e6efdaccc641155a30019d5ec4821c0a0d59c1d29d5
Contents?: true
Size: 391 Bytes
Versions: 12
Compression:
Stored size: 391 Bytes
Contents
class RackApp def self.call(env) if env['PATH_INFO'] == '/404' [404, {}, ["not found ;("]] else [200, {}, ["hello rack app"]] end end def self.prerequisites super end end RackApp2 = lambda{|_| [200, {}, ["hello rack app2"]] } class SinatraApp < Sinatra::Base set :public_folder, File.dirname(__FILE__) get "/" do "hello sinatra app" end end
Version data entries
12 entries across 12 versions & 1 rubygems