Module: BotMob
- Defined in:
- lib/bot_mob.rb,
lib/bot_mob/bot.rb,
lib/bot_mob/wire.rb,
lib/bot_mob/version.rb,
lib/bot_mob/authority.rb,
lib/bot_mob/application.rb,
lib/bot_mob/inbound_message.rb
Overview
## BotMob
BotMob provides all the tools you need to easily connect to chat networks
Defined Under Namespace
Classes: Application, Authority, Bot, InboundMessage, Wire
Constant Summary collapse
- VERSION =
'0.1.2'.freeze
Class Method Summary collapse
Class Method Details
.logger ⇒ Object
22 23 24 25 26 27 28 29 30 31 |
# File 'lib/bot_mob.rb', line 22 def self.logger @logger ||= begin buffer = Logger.new(STDOUT) if buffer buffer.level = ($PROGRAM_NAME == 'irb' ? Logger::DEBUG : Logger::INFO) buffer.formatter = proc { |severity, datetime, progname, msg| "#{msg}\n" } end buffer end end |
.root ⇒ Object
18 19 20 |
# File 'lib/bot_mob.rb', line 18 def self.root File.('../..', __FILE__) end |