lib/responder.rb
# Receive a message and call any blocks that have been registered with <code>listen</code>
# if the message matches the format.
Receive a message and call any blocks that have been registered with listen
if the message matches the format.
Receive a message and call any blocks that have been registered with listen if the message matches the format .
def receive(message)
      self.class.listeners.map do |matcher, block|
        match = matcher.match(message)
        block.call(match) if match
      end.compact
    end
def receive ( message ) self . class . listeners . map do | matcher , block | match = matcher . match ( message ) block . call ( match ) if match end . compact end
Receive a message and call any blocks that have been registered with <code>listen</code>
if the message matches the format.
Receive a message and call any blocks that have been registered with <code > listen< / code > if the message matches the format .
message