Module: Roda::RodaPlugins::DirectCall

Defined in:
lib/roda/plugins/direct_call.rb

Overview

The direct_call plugin makes the call class method skip the middleware stack (app.call will still call the middleware). This can be used as an optimization, as the Roda class itself can be used as the callable, which is faster than using a lambda.

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.configure(app) ⇒ Object



11
12
13
# File 'lib/roda/plugins/direct_call.rb', line 11

def self.configure(app)
  app.send(:build_rack_app)
end