Sha256: 528a5ebd4c8f03d507fa1eecc54c52a1f63feed5c7d05522921041fe76e02eb0

Contents?: true

Size: 269 Bytes

Versions: 13

Compression:

Stored size: 269 Bytes

Contents

# frozen_string_literal: true

class Grumlin::Middlewares::Builder < ::Middleware::Builder
  def similar?(other)
    stack == other.stack
  end

  def include?(middleware)
    stack.any? { |m| m.first == middleware }
  end

  def to_app
    @to_app ||= super
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
grumlin-1.0.4 lib/grumlin/middlewares/builder.rb
grumlin-1.0.3 lib/grumlin/middlewares/builder.rb
grumlin-1.0.3.beta1 lib/grumlin/middlewares/builder.rb
grumlin-1.0.2 lib/grumlin/middlewares/builder.rb
grumlin-1.0.1 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc7 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc6 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc5 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc4 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc3 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc2 lib/grumlin/middlewares/builder.rb
grumlin-1.0.0.rc1 lib/grumlin/middlewares/builder.rb