lib/mutest/actor.rb
def call(type)
        other.call(Message.new(type, mailbox.sender))
        message = mailbox.receiver.call
        raise ProtocolError, "Expected #{type} but got #{message.type}" unless type.equal?(message.type)

        message.payload
      end
# Send message and wait for reply
#
# @param [Symbol] type
#
# @return [Object]
Send message and wait for reply
Send message and wait for reply
def call(type)
        other.call(Message.new(type, mailbox.sender))
        message = mailbox.receiver.call
        raise ProtocolError, "Expected #{type} but got #{message.type}" unless type.equal?(message.type)
        message.payload
      end
def call ( type ) other . call ( Message . new ( type , mailbox . sender ) ) message = mailbox . receiver . call raise ProtocolError , "Expected #{type} but got #{message.type}" unless type . equal? ( message . type ) message . payload end
Send message and wait for reply
Send message and wait for reply
None
Object
type
None