Class: Fray::ResponsePipe

Inherits:
AbortablePipe show all
Defined in:
lib/fray/response_pipe.rb

Instance Method Summary collapse

Methods inherited from AbortablePipe

#catch, #run, #then

Constructor Details

#initialize(thens = [], c = nil) ⇒ ResponsePipe

Returns a new instance of ResponsePipe.



32
33
34
35
# File 'lib/fray/response_pipe.rb', line 32

def initialize(thens = [], c = nil)
  abort_predicate = ->(state) { state.is_a?(Fray::Data::Response) }
  super(abort_predicate, thens, c)
end