Sha256: 508080c4c09252fd095b8d3de2c0cc3bb8d6be9e807649ad3262991c170d7da1

Contents?: true

Size: 290 Bytes

Versions: 5

Compression:

Stored size: 290 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.join.to_s
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rail-0.1.1 spec/fixtures/project/controller.rb
rail-0.1.0 spec/fixtures/project/controller.rb
rail-0.0.8 spec/fixtures/project/controller.rb
rail-0.0.7 spec/project/controller.rb
rail-0.0.6 spec/project/controller.rb