class RailwayIpc::HandlerStore

Attributes

handler_map[R]

Public Class Methods

new() click to toggle source
# File lib/railway_ipc/handler_store.rb, line 8
def initialize
  @handler_map = {}
end

Public Instance Methods

get(response_message) click to toggle source
# File lib/railway_ipc/handler_store.rb, line 20
def get(response_message)
  handler_map[response_message]
end
register(message:, handler:) click to toggle source
# File lib/railway_ipc/handler_store.rb, line 16
def register(message:, handler:)
  handler_map[message.to_s] = HandlerManifest.new(message, handler)
end
registered() click to toggle source
# File lib/railway_ipc/handler_store.rb, line 12
def registered
  handler_map.keys
end