Method: Chatterbot::Handler#initialize

Defined in:
lib/chatterbot/handler.rb

#initialize(opts, &block) ⇒ Handler

Returns a new instance of Handler.



11
12
13
14
15
16
17
18
19
# File 'lib/chatterbot/handler.rb', line 11

def initialize(opts, &block)
  if block_given?
    @opts = *opts
    @block = block
  else
    @opts = nil
    @block = opts
  end
end