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,
lib/chatterbot/home_timeline.rb
Overview
the big kahuna!
Defined Under Namespace
Modules: Blacklist, Client, Config, DB, DSL, Favorite, Followers, Helpers, HomeTimeline, Logging, Profile, Reply, Retweet, Search, Streaming, Tweet, UI, Utils, Whitelist Classes: Bot, Skeleton
Constant Summary collapse
- VERSION =
"1.0.1"
- @@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
64 65 66 |
# File 'lib/chatterbot.rb', line 64 def self.from_helper @@from_helper end |
.from_helper=(x) ⇒ Object
60 61 62 |
# File 'lib/chatterbot.rb', line 60 def self.from_helper=(x) @@from_helper = x end |
.libdir ⇒ Object
Return a directory with the project libraries.
71 72 73 74 75 76 |
# File 'lib/chatterbot.rb', line 71 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
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/chatterbot.rb', line 36 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/home_timeline" require "chatterbot/streaming" require "chatterbot/streaming_handler" require "chatterbot/followers" require "chatterbot/helpers" require "chatterbot/utils" require "chatterbot/bot" end |