Class: Anian::Application
- Inherits:
-
Object
- Object
- Anian::Application
- Defined in:
- lib/anian.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/anian.rb', line 10 def call(env) klass, act = get_controller_and_action(env) controller = klass.new(env) text = controller.send(act) [200, { "Content-Type" => "text/html" }, [text]] end |