Module: NumbersAndWords::Strategies::ArrayJoiner::Languages

Defined in:
lib/numbers_and_words/strategies/array_joiner/languages.rb,
lib/numbers_and_words/strategies/array_joiner/languages/cs.rb,
lib/numbers_and_words/strategies/array_joiner/languages/en.rb,
lib/numbers_and_words/strategies/array_joiner/languages/es.rb,
lib/numbers_and_words/strategies/array_joiner/languages/fr.rb,
lib/numbers_and_words/strategies/array_joiner/languages/hu.rb,
lib/numbers_and_words/strategies/array_joiner/languages/ru.rb,
lib/numbers_and_words/strategies/array_joiner/languages/ua.rb,
lib/numbers_and_words/strategies/array_joiner/languages/vi.rb,
lib/numbers_and_words/strategies/array_joiner/languages/base.rb,
lib/numbers_and_words/strategies/array_joiner/languages/en-GB.rb,
lib/numbers_and_words/strategies/array_joiner/languages/pt-BR.rb,
lib/numbers_and_words/strategies/array_joiner/languages/families/base.rb

Defined Under Namespace

Modules: Families Classes: Base, Cs, En, EnGb, Es, Fr, Hu, PtBr, Ru, Ua, Vi

Class Method Summary collapse

Class Method Details

.factory(strategy) ⇒ Object


23
24
25
# File 'lib/numbers_and_words/strategies/array_joiner/languages.rb', line 23

def factory(strategy)
  Object.const_get("#{name}::#{I18n.language_class_name}").new strategy
end