Class: Grumlin::Middlewares::Builder

Inherits:
Middleware::Builder
  • Object
show all
Defined in:
lib/grumlin/middlewares/builder.rb

Instance Method Summary collapse

Instance Method Details

#include?(middleware) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/grumlin/middlewares/builder.rb', line 8

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

#similar?(other) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/grumlin/middlewares/builder.rb', line 4

def similar?(other)
  stack == other.stack
end

#to_appObject



12
13
14
# File 'lib/grumlin/middlewares/builder.rb', line 12

def to_app
  @to_app ||= super
end