Sha256: 706b105f5c39c1d9d5f9ffe9a5a8ec4f55e59dd8e4ab3c3c6402ca87eb441541
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
require "thomler/version" require "thomler/array" module Thomler class Application def call env klass, act = get_controller_and_action(env) controller = klass.new(env) text = controller.send(act) [200, {'Content-Type' => 'text/html'}, ["Hello from Ruby on Thomler!"]] end end class Controller def initialize env @env = env end def env @env end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
thomler-0.1.1 | lib/thomler.rb |