lib/scrimp/thrift_util.rb
def service_rpcs(service_module)
        service_module::Client.instance_methods.
          select { |m| m =~ /^send_/ }.
          map { |m| m.to_s.sub('send_', '') }.
          select { |m| service_module.const_defined?("#{m.capitalize}_args") }
      end
# Given a service module (see service_modules above), returns a list of the names of all
# the RPCs of that Thrift service.
Given a service module , returns a list of the names of all
the RPCs of that Thrift service.
Given a service module returns a list of the names of all the RPCs of that Thrift service .
def service_rpcs(service_module)
        service_module::Client.instance_methods.
          select { |m| m =~ /^send_/ }.
          map { |m| m.to_s.sub('send_', '') }.
          select { |m| service_module.const_defined?("#{m.capitalize}_args") }
      end
def service_rpcs ( service_module ) service_module :: Client . instance_methods . select { | m | m =~ / ^send_ / } . map { | m | m . to_s . sub ( 'send_' , '' ) } . select { | m | service_module . const_defined? ( "#{m.capitalize}_args" ) } end
Given a service module (see service_modules above), returns a list of the names of all
the RPCs of that Thrift service.
Given a service module ( see service_modules above ) returns a list of the names of all the RPCs of that Thrift service .
service_module