Method: Qa::LinkedData::LanguageSortService#uniq_sorted_strings
- Defined in:
- app/services/qa/linked_data/language_sort_service.rb
#uniq_sorted_strings ⇒ Array<String>
Sort the literals and return as an array of strings with only unique literals and empty strings removed
34 35 36 |
# File 'app/services/qa/linked_data/language_sort_service.rb', line 34 def uniq_sorted_strings sort.map(&:to_s).uniq.delete_if(&:blank?) end |