Module: Vocab

Defined in:
lib/vocab/translator/rails.rb,
lib/vocab.rb,
lib/vocab/ui.rb,
lib/vocab/merger.rb,
lib/vocab/version.rb,
lib/vocab/settings.rb,
lib/vocab/extractor.rb,
lib/vocab/validator.rb,
lib/vocab/translator.rb,
lib/vocab/application.rb,
lib/vocab/merger/base.rb,
lib/vocab/merger/rails.rb,
lib/vocab/extractor/base.rb,
lib/vocab/merger/android.rb,
lib/vocab/validator/base.rb,
lib/vocab/extractor/rails.rb,
lib/vocab/translator/base.rb,
lib/vocab/validator/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: Extractor, Merger, Translator, Validator Classes: Application, Settings, UI

Constant Summary collapse

VERSION =
"0.0.5"

Class Method Summary collapse

Class Method Details

.rootObject

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



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

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

.settingsObject



20
21
22
# File 'lib/vocab.rb', line 20

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

.uiObject



24
25
26
# File 'lib/vocab.rb', line 24

def ui
  @ui ||= UI.new
end