Sha256: a0a3cc583a809c597ec71c6fc302a698b3154c30e8afd38c8f146a8b9a515321
Contents?: true
Size: 569 Bytes
Versions: 8
Compression:
Stored size: 569 Bytes
Contents
# frozen_string_literal: true require 'grpc_kit/grpc/dsl' module GrpcKit module GRPC module GenericService def self.included(obj) obj.extend(GrpcKit::GRPC::Dsl) # return unless obj.service_name.nil? # if obj.name.nil? # obj.service_name = 'GenericService' # else # modules = obj.name.split('::') # obj.service_name = # if modules.length > 2 # modules[modules.length - 2] # else # modules.first # end # end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems