Method: Zircon#initialize
- Defined in:
- lib/zircon.rb
#initialize(args = {}) ⇒ Zircon
Returns a new instance of Zircon.
64 65 66 67 68 69 70 71 72 73 74 |
# File 'lib/zircon.rb', line 64 def initialize(args = {}) @server = args[:server] @port = args[:port] @channel = args[:channel] @password = args[:password] @username = args[:username] @nickname = args[:nickname] || @username @realname = args[:realname] || @username @use_ssl = args[:use_ssl] || false on_ping { || pong(.raw) } end |