Class: EM::IrcBot::ConnHandler
- Inherits:
-
EventMachine::Connection
- Object
- EventMachine::Connection
- EM::IrcBot::ConnHandler
- Extended by:
- Forwardable
- Defined in:
- lib/em/irc_bot/conn_handler.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#connection_completed ⇒ Object
:nodoc:.
-
#initialize(parent, tls = false) ⇒ ConnHandler
constructor
A new instance of ConnHandler.
-
#ssl_handshake_completed ⇒ Object
:nodoc:.
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_completed ⇒ Object
: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_completed ⇒ Object
:nodoc:
18 19 20 |
# File 'lib/em/irc_bot/conn_handler.rb', line 18 def ssl_handshake_completed @parent.ready end |