Module: Srbovanje
- Extended by:
- Srbovanje
- Included in:
- Srbovanje
- Defined in:
- lib/srbovanje.rb,
lib/srbovanje/railtie.rb,
lib/srbovanje/srbovanje.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- ABECEDA =
%w(A B C Č Ć D Dž Đ E F G H I J K L Lj M N Nj O P R S Š T U V Z Ž)
Instance Method Summary collapse
Instance Method Details
#abeceda ⇒ Object
14 15 16 |
# File 'lib/srbovanje/srbovanje.rb', line 14 def abeceda ABECEDA end |
#latinicom(text) ⇒ Object
6 7 8 |
# File 'lib/srbovanje/srbovanje.rb', line 6 def latinicom(text) Preslovi.latinicom(text).force_encoding('utf-8').encode end |
#latinicom_ascii(text) ⇒ Object
10 11 12 |
# File 'lib/srbovanje/srbovanje.rb', line 10 def latinicom_ascii(text) Preslovi.latinicom_ascii(text).force_encoding('utf-8').encode end |