Method: Unicode::Scripts.scripts

Defined in:
lib/unicode/scripts.rb

.scripts(string, **options) ⇒ Object Also known as: of



5
6
7
8
9
10
11
12
# File 'lib/unicode/scripts.rb', line 5

def self.scripts(string, **options)
  res = []
  string.each_char{ |char|
    script_name = script(char, **options)
    res << script_name unless res.include?(script_name)
  }
  res.sort
end