module Yrpc class Executor def run server = Yrpc::Server.new(Yrpc.server_options) Yrpc.services.each { |service| server.add_service(service) } server.grpc_server.run end def auto_load_all end end module Ruler def self.to_underscore(string) string.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2'). gsub(/([a-z\d])([A-Z])/, '\1_\2'). tr("-", "_"). downcase end end end