Module: GAI18n

Defined in:
lib/gai18n.rb,
lib/gai18n/cli.rb,
lib/gai18n/setup.rb,
lib/gai18n/errors.rb,
lib/gai18n/locale.rb,
lib/gai18n/content.rb,
lib/gai18n/version.rb,
lib/gai18n/openai/run.rb,
lib/gai18n/translator.rb,
lib/gai18n/locale_file.rb,
lib/gai18n/translation.rb,
lib/gai18n/configuration.rb,
lib/gai18n/openai/thread.rb,
lib/gai18n/git_comparison.rb,
lib/gai18n/openai/message.rb,
lib/gai18n/openai/assistant.rb

Defined Under Namespace

Modules: OpenAI Classes: CLI, Configuration, Content, GAI18nError, GitComparison, IncorrectResponseError, LoadError, Locale, LocaleFile, Setup, Translation, Translator

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.configObject



38
39
40
# File 'lib/gai18n/configuration.rb', line 38

def self.config
  configuration
end

.configurationObject



34
35
36
# File 'lib/gai18n/configuration.rb', line 34

def self.configuration
  @configuration ||= Configuration.new
end

.configure {|configuration| ... } ⇒ Object

Yields:



42
43
44
# File 'lib/gai18n/configuration.rb', line 42

def self.configure
  yield configuration if block_given?
end