Class: GrpcKit::GRPC::Stream

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/grpc_kit/grpc/stream.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass) ⇒ Stream


12
13
14
# File 'lib/grpc_kit/grpc/stream.rb', line 12

def initialize(klass)
  @klass = klass
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

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

FIXME: Do not use method_missing…


17
18
19
# File 'lib/grpc_kit/grpc/stream.rb', line 17

def method_missing(name, *args, &block)
  @klass.send(name, *args, &block)
end