Class: Thrift::Middleware::NopMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/thrift/middleware.rb

Instance Method Summary collapse

Instance Method Details

#handle_binary(_mth, args = {}, &block) ⇒ Object



4
5
6
# File 'lib/thrift/middleware.rb', line 4

def handle_binary(_mth, args = {}, &block)
  block.call(args)
end

#handle_unary(_mth, args = {}, &block) ⇒ Object



8
9
10
# File 'lib/thrift/middleware.rb', line 8

def handle_unary(_mth, args = {},  &block)
  block.call(args)
end