Tells the stack to use given middleware.
app = Ustack.new do use M1 end app.use M2 app.use M2, my_option: 'xxx'
Parameters:
Middleware class to be used.
Hash of orbitrary options for new middlware.
64 65 66 67
# File 'lib/ustack.rb', line 64 def use(klass, options=nil) @ustack ||= [] @ustack << [klass, options] end