# frozen_string_literal: true require_relative "anian/version" require_relative "anian/routing" module Anian class Error < StandardError; end 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" }, [text]] end end class Controller attr_accessor :env def initialize(env) @env = env end end end