Method: ChatScript::Client#initialize
- Defined in:
- lib/chatscript.rb
#initialize(hostname: 'localhost', port: 1024, bot: '', default_user: 'guest', error_handler: method(:error_handler)) ⇒ Client
Returns a new instance of Client.
48 49 50 51 52 53 54 55 |
# File 'lib/chatscript.rb', line 48 def initialize( hostname: 'localhost', port: 1024, bot: '', default_user: 'guest', error_handler: method(:error_handler) ) @hostname = hostname @port = port @bot = bot @default_user = default_user @error_handler = error_handler end |