Module: StallmanBot
- Defined in:
- lib/stallman_bot.rb,
lib/stallman_bot/bot.rb,
lib/stallman_bot/locale.rb,
lib/stallman_bot/version.rb,
lib/stallman_bot/commands.rb,
lib/stallman_bot/listener.rb,
lib/stallman_bot/arg_parser.rb,
lib/stallman_bot/commands/base.rb,
lib/stallman_bot/commands/stop.rb,
lib/stallman_bot/configuration.rb,
lib/stallman_bot/commands/start.rb,
lib/stallman_bot/commands/status.rb
Defined Under Namespace
Modules: Commands Classes: ArgParser, Bot, Configuration, Listener, Locale
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.config ⇒ Object
readonly
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/stallman_bot.rb', line 5 def config @config end |
Class Method Details
.configure(opts = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/stallman_bot.rb', line 8 def self.configure(opts = {}) @config ||= if opts[:config] || opts.empty? Configuration.configure_with(opts[:config]) else Configuration.configure(opts) end end |