Sha256: 1280ffae1cf0fc3c138221e59714eb980bdf8322ef041eaafe967c33edc3142f
Contents?: true
Size: 565 Bytes
Versions: 147
Compression:
Stored size: 565 Bytes
Contents
# Allows a default Rack middlware implementation to be set, # and then be optionally changed out for a different implementation # after the app has been built. # Used for allowing the authorization code to set after the # `app = PactBroker::App.new` has been called module Rack module PactBroker class ConfigurableMakeItLater def initialize default_clazz @clazz = default_clazz end def make_it_later clazz @clazz = clazz end def new *args, &block @clazz.new(*args, &block) end end end end
Version data entries
147 entries across 147 versions & 1 rubygems