module MMonad::Pattern

Constants

AGENTS
CLIENTS
LIBRARY

Public Class Methods

find(type) click to toggle source
# File lib/m_monad/pattern.rb, line 21
def self.find(type)
  LIBRARY.fetch(type)
rescue KeyError => ex
  raise PatternNotAllowed, ex.message
end
find_agent(type) click to toggle source
# File lib/m_monad/pattern.rb, line 27
def self.find_agent(type)
  AGENTS.fetch(type)
rescue KeyError => ex
  raise PatternNotAllowed, ex.message
end
find_client(type) click to toggle source
# File lib/m_monad/pattern.rb, line 33
def self.find_client(type)
  CLIENTS.fetch(type)
rescue KeyError => ex
  raise PatternNotAllowed, ex.message
end