Module: Iuliia

Defined in:
lib/iuliia/iuliia.rb,
lib/iuliia/schema.rb,
lib/iuliia/version.rb,
lib/iuliia/translit.rb,
lib/iuliia/exceptions.rb

Defined Under Namespace

Modules: Exceptions, Schema Classes: Translit

Constant Summary collapse

VERSION =
'1.0.4'

Class Method Summary collapse

Class Method Details

.translate(string, schema:) ⇒ String

Translate cyrillic string to latin representation

Parameters:

Returns:

  • (String)


9
10
11
# File 'lib/iuliia/iuliia.rb', line 9

def translate(string, schema:)
  Iuliia::Translit.new(string, schema).translit
end

.translit(string, schema:) ⇒ Object



13
14
15
16
# File 'lib/iuliia/iuliia.rb', line 13

def translit(string, schema:)
  warn 'translit is deprecated, use .translate instead'
  translate(string, schema: schema)
end