lib/scrimp/thrift_util.rb
# For every Thrift service, the code generator produces a module. This
# returns a list of all such modules currently loaded.
For every Thrift service, the code generator produces a module. This
returns a list of all such modules currently loaded.
For every Thrift service the code generator produces a module . This returns a list of all such modules currently loaded .
def service_modules
        ObjectSpace.each_object(Module).
          select { |klass| klass != Thrift && klass < Thrift::Client }.
          map { |klass| qualified_const(klass.name.split('::')[0..-2].join('::')) }
      end
def service_modules ObjectSpace . each_object ( Module ) . select { | klass | klass != Thrift && klass < Thrift :: Client } . map { | klass | qualified_const ( klass . name . split ( '::' ) [ 0 .. - 2 ] . join ( '::' ) ) } end
For every Thrift service, the code generator produces a module.
For every Thrift service the code generator produces a module .