Method: Persian::Unicode.lro

Defined in:
lib/persian/unicode.rb

.lro(text) ⇒ Object



35
36
37
38
39
40
# File 'lib/persian/unicode.rb', line 35

def self.lro(text)
  rlo_tag = 0x202D
  pop_tag = 0x202C

  codepoint_to_char(rlo_tag) + text + codepoint_to_char(pop_tag)
end