Method: Unicode::Types.types
- Defined in:
- lib/unicode/types.rb
.types(string) ⇒ Object Also known as: of
5 6 7 8 9 10 11 12 |
# File 'lib/unicode/types.rb', line 5 def self.types(string) res = [] string.each_char{ |char| type_name = type(char) res << type_name unless res.include?(type_name) } res.sort end |