Sha256: e15e085a9213ce3865b7a7fc89d8180b920afc94aa22e9f8474a815a764b3bd6

Contents?: true

Size: 367 Bytes

Versions: 1

Compression:

Stored size: 367 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, &block)
        stack.push([middleware, *args, block].compact)
      end

      attr_reader :stack
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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