Module: Tox::OutMessage

Included in:
OutFriendMessage
Defined in:
lib/tox/out_message.rb

Overview

Abstract module for outgoing message representation in Tox client.

Defined Under Namespace

Classes: EmptyError, SendQueueAllocError, TooLongError

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



16
17
18
19
20
# File 'lib/tox/out_message.rb', line 16

def ==(other)
  self.class == other.class &&
    friend == other.friend &&
    id == other.id
end

#clientObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/tox/out_message.rb', line 12

def client
  raise NotImplementedError, "#{self.class}#client"
end

#initializeObject

Raises:

  • (NotImplementedError)


8
9
10
# File 'lib/tox/out_message.rb', line 8

def initialize(*)
  raise NotImplementedError, "#{self.class}#initialize"
end