Method: Hx::Interop::Middleware#stack
- Defined in:
- lib/interop/middleware.rb
#stack ⇒ Object
Return the complete Middleware stack as an array, with this instance as the first item, and the core (or shallowest non-Middleware layer) as the last.
41 42 43 44 45 46 47 48 49 |
# File 'lib/interop/middleware.rb', line 41 def stack result = [self] if @connection.is_a? Middleware result.concat @connection.stack else result << @connection end result end |