Class: EM::IrcBot::ConnHandler

Inherits:
EventMachine::Connection
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/em/irc_bot/conn_handler.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(parent, tls = false) ⇒ ConnHandler

Returns a new instance of ConnHandler.



7
8
9
10
# File 'lib/em/irc_bot/conn_handler.rb', line 7

def initialize(parent, tls = false)
	@parent = parent
	@tls    = tls
end

Instance Method Details

#connection_completedObject

:nodoc:



13
14
15
# File 'lib/em/irc_bot/conn_handler.rb', line 13

def connection_completed
	@tls ? start_tls : @parent.ready
end

#ssl_handshake_completedObject

:nodoc:



18
19
20
# File 'lib/em/irc_bot/conn_handler.rb', line 18

def ssl_handshake_completed
	@parent.ready
end