Sha256: ffbe9f57bb63b667978daf29567705b2ebe545f44bbbabea8dcbd08dcb31b607

Contents?: true

Size: 344 Bytes

Versions: 1

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module Hanami
  class Configuration
    # Hanami application configured Rack middleware
    #
    # @since 2.0.0
    class Middleware
      def initialize
        @stack = []
      end

      def use(middleware, *args)
        stack.push([middleware, *args])
      end

      attr_reader :stack
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
hanami-2.0.0.alpha1 lib/hanami/configuration/middleware.rb