Sha256: 6c279030fb2234a76f105679e220ac7b220f66f3300c9b11cb2fb024477d0e5b
Contents?: true
Size: 285 Bytes
Versions: 4
Compression:
Stored size: 285 Bytes
Contents
require_relative 'config/application' class Controller def initialize(&block) Project::Application.class_eval(&block) if block @application = Project::Application.new end def process(path) _, _, body = @application.call('PATH_INFO' => path) body.to_s end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rail-0.0.5 | spec/project/controller.rb |
rail-0.0.4 | spec/project/controller.rb |
rail-0.0.3 | spec/project/controller.rb |
rail-0.0.2 | spec/project/controller.rb |