Class: Griffin::Interceptors::CallStream

Inherits:
GrpcKit::Call
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/griffin/interceptors/call_stream.rb

Direct Known Subclasses

Server::PayloadStreamer

Instance Method Summary collapse

Constructor Details

#initialize(inner) ⇒ CallStream

Returns a new instance of CallStream.



14
15
16
# File 'lib/griffin/interceptors/call_stream.rb', line 14

def initialize(inner)
  @inner = inner
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args, &block) ⇒ Object



22
23
24
# File 'lib/griffin/interceptors/call_stream.rb', line 22

def method_missing(name, *args, &block)
  @inner.public_send(name, *args, &block)
end

Instance Method Details

#eachObject



18
19
20
# File 'lib/griffin/interceptors/call_stream.rb', line 18

def each
  loop { yield(recv) }
end