class String
Constants
- UTHMANI_CHARS
Public Instance Methods
uthmani_size()
click to toggle source
Counts the number of letters in a given Uthmani string
Example:
>> "ٱلرَّحْمَٰنِ".uthmani_size => 6
# File lib/uthmani_text_size.rb, line 15 def uthmani_size split('').select { |letter| UTHMANI_CHARS.include?(letter) }.size end