Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/wax_tasks/utils.rb
Overview
Monkey-patched Array class
Instance Method Summary collapse
-
#lunr_normalize ⇒ Hash || String
Normalizes an array as a string or array of hashes without diacritics for lunr indexing.
Instance Method Details
#lunr_normalize ⇒ Hash || String
Normalizes an array as a string or array of hashes without diacritics for lunr indexing
159 160 161 162 163 164 165 |
# File 'lib/wax_tasks/utils.rb', line 159 def lunr_normalize if self.first.is_a? Hash self else WaxTasks::Utils.remove_diacritics(self.join(', ')) end end |