Module: Boty

Defined in:
lib/boty.rb,
lib/boty/bot.rb,
lib/boty/cli.rb,
lib/boty/dsl.rb,
lib/boty/http.rb,
lib/boty/rspec.rb,
lib/boty/slack.rb,
lib/boty/action.rb,
lib/boty/locale.rb,
lib/boty/logger.rb,
lib/boty/session.rb,
lib/boty/version.rb,
lib/boty/slack/im.rb,
lib/boty/eventable.rb,
lib/boty/slack/rtm.rb,
lib/boty/slack/url.rb,
lib/boty/slack/chat.rb,
lib/boty/slack/user.rb,
lib/boty/slack/users.rb,
lib/boty/match_handler.rb,
lib/boty/script_loader.rb,
lib/boty/slack/channel.rb,
lib/boty/slack/message.rb,
lib/boty/action_description.rb

Overview

Namespace for all Boty code.

Defined Under Namespace

Modules: Eventable, Logger, MatchHandler, RSpec, Slack Classes: Action, ActionDescription, Bot, CLI, DSL, HTTP, Locale, ScriptLoader, Session

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.locale=(lang) ⇒ Object

Public: Reloads the available locale configuration files and set the current language as the one passed in the paramenter ‘lang`.

lang - String or Symbol representing the language that should be set for the current execution.

Examples:

Boty.locale = :en

Returns nothing.



25
26
27
# File 'lib/boty.rb', line 25

def self.locale=(lang)
  Locale.reload lang
end