Module: Vocab

Defined in:
lib/vocab/cleaner/rails.rb,
lib/vocab.rb,
lib/vocab/ui.rb,
lib/vocab/merger.rb,
lib/vocab/cleaner.rb,
lib/vocab/version.rb,
lib/vocab/settings.rb,
lib/vocab/converter.rb,
lib/vocab/extractor.rb,
lib/vocab/validator.rb,
lib/vocab/translator.rb,
lib/vocab/application.rb,
lib/vocab/merger/base.rb,
lib/vocab/cleaner/base.rb,
lib/vocab/merger/rails.rb,
lib/vocab/converter/base.rb,
lib/vocab/extractor/base.rb,
lib/vocab/merger/android.rb,
lib/vocab/validator/base.rb,
lib/vocab/cleaner/android.rb,
lib/vocab/converter/rails.rb,
lib/vocab/extractor/rails.rb,
lib/vocab/translator/base.rb,
lib/vocab/validator/rails.rb,
lib/vocab/translator/rails.rb,
lib/vocab/extractor/android.rb,
lib/vocab/validator/android.rb,
lib/vocab/translator/android.rb

Overview

Warning: this object has some sharp edges because it is an unusual use of the i18n gem For example:

- we are calling private methods
- instances share the I18n.load_path, which could lead to unexpected behavior

Defined Under Namespace

Modules: Cleaner, Converter, Extractor, Merger, Translator, Validator Classes: Application, Settings, UI

Constant Summary collapse

VERSION =
"0.1.2"

Class Method Summary collapse

Class Method Details

.rootObject

Returns root directory where .vocab is located TODO: make this work in subdirectory under .vocab



39
40
41
# File 'lib/vocab.rb', line 39

def root
  return File.expand_path( Dir.pwd )
end

.settingsObject



29
30
31
# File 'lib/vocab.rb', line 29

def settings
  @settings ||= Settings.new( root )
end

.uiObject



33
34
35
# File 'lib/vocab.rb', line 33

def ui
  @ui ||= UI.new
end