Sha256: e21500796887b4e46fa6da442352d7bd450b804c732c4fe09d055be349d51037

Contents?: true

Size: 402 Bytes

Versions: 1

Compression:

Stored size: 402 Bytes

Contents

module ModelContextProtocol
  class Server
    class Router
      ##
      # Base class for route maps.
      class BaseMap
        def initialize(routes)
          @routes = routes
        end

        private

        def register(method, handler, **options)
          @routes[method] = {
            handler: handler,
            options: options
          }
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
model-context-protocol-rb-0.2.0 lib/model_context_protocol/server/router/base_map.rb