Module: Chatterbot
- Defined in:
- lib/chatterbot.rb,
lib/chatterbot/db.rb,
lib/chatterbot/ui.rb,
lib/chatterbot/bot.rb,
lib/chatterbot/dsl.rb,
lib/chatterbot/reply.rb,
lib/chatterbot/tweet.rb,
lib/chatterbot/utils.rb,
lib/chatterbot/client.rb,
lib/chatterbot/config.rb,
lib/chatterbot/search.rb,
lib/chatterbot/helpers.rb,
lib/chatterbot/logging.rb,
lib/chatterbot/profile.rb,
lib/chatterbot/retweet.rb,
lib/chatterbot/version.rb,
lib/chatterbot/favorite.rb,
lib/chatterbot/skeleton.rb,
lib/chatterbot/blacklist.rb,
lib/chatterbot/followers.rb,
lib/chatterbot/streaming.rb,
lib/chatterbot/whitelist.rb
Overview
the big kahuna!
Defined Under Namespace
Modules: Blacklist, Client, Config, DB, DSL, Favorite, Followers, Helpers, Logging, Profile, Reply, Retweet, Search, Streaming, Tweet, UI, Utils, Whitelist Classes: Bot, Skeleton
Constant Summary collapse
- VERSION =
"0.9.2"
- @@from_helper =
false
Class Method Summary collapse
- .from_helper ⇒ Object
- .from_helper=(x) ⇒ Object
-
.libdir ⇒ Object
Return a directory with the project libraries.
-
.load ⇒ Object
load in our assorted modules.
Class Method Details
.from_helper ⇒ Object
62 63 64 |
# File 'lib/chatterbot.rb', line 62 def self.from_helper @@from_helper end |
.from_helper=(x) ⇒ Object
58 59 60 |
# File 'lib/chatterbot.rb', line 58 def self.from_helper=(x) @@from_helper = x end |
.libdir ⇒ Object
Return a directory with the project libraries.
69 70 71 72 73 74 |
# File 'lib/chatterbot.rb', line 69 def self.libdir t = [File.(File.dirname(__FILE__)), "#{Gem.dir}/gems/chatterbot-#{Chatterbot::VERSION}"] t.each {|i| return i if File.readable?(i) } raise "both paths are invalid: #{t}" end |
.load ⇒ Object
load in our assorted modules
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/chatterbot.rb', line 35 def self.load require "chatterbot/config" require "chatterbot/db" require "chatterbot/logging" require "chatterbot/blacklist" require "chatterbot/whitelist" require "chatterbot/ui" require "chatterbot/client" require "chatterbot/search" require "chatterbot/tweet" require "chatterbot/retweet" require "chatterbot/favorite" require "chatterbot/profile" require "chatterbot/reply" require "chatterbot/streaming" require "chatterbot/streaming_handler" require "chatterbot/followers" require "chatterbot/helpers" require "chatterbot/utils" require "chatterbot/bot" end |