Class: Grumlin::Middlewares::Builder
- Inherits:
-
Middleware::Builder
- Object
- Middleware::Builder
- Grumlin::Middlewares::Builder
- Defined in:
- lib/grumlin/middlewares/builder.rb
Instance Method Summary collapse
Instance Method Details
#include?(middleware) ⇒ 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
4 5 6 |
# File 'lib/grumlin/middlewares/builder.rb', line 4 def similar?(other) stack == other.stack end |
#to_app ⇒ Object
12 13 14 |
# File 'lib/grumlin/middlewares/builder.rb', line 12 def to_app @to_app ||= super end |