Sha256: e980b5a7555613dc369e311081fa63b05cb18b2821a7edb6d2e3cd5d33e38ba8
Contents?: true
Size: 569 Bytes
Versions: 4
Compression:
Stored size: 569 Bytes
Contents
on 'flat' do success! content: "flat" end on '**/hello-world' do success! content: @hello_world end on '**' do @hello_world = "Hello World" end on 'ignore' do ignore! end on 'redirect' do redirect! 'bar' end on 'rewrite' do rewrite! 'index' end on 'index' do success! content: 'Hello World' end class TharSheBlows < StandardError end on 'blow' do raise TharSheBlows.new("Arrrh!") end on 'exception' do |request| if request['fatal'] raise TharSheBlows.new("Yarrh!") else success! :content => 'Error Will Robertson', :type => 'text/plain' end end
Version data entries
4 entries across 4 versions & 1 rubygems