Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 390 Bytes

building_a_rack_application.md

File metadata and controls

25 lines (17 loc) · 390 Bytes

Building a rack application

To build a rack application with web_pipe, you have to include WebPipe module in a class:

require 'web_pipe'

class MyApp
  include WebPipe

  # ...
end

Then, you can plug the operations and add the rack middlewares you need.

The instance of that class will be the rack application:

# config.ru
require 'my_app'

run MyApp.new