class Array
Extending the Array
class.
@author [zohaibahmed]
Public Instance Methods
fuzzy_include?(search_value, regex_format = '%s')
click to toggle source
Search if search value is in string @param search_value [String] @param regex_format = ā%sā [String]
@return [type] [description]
# File lib/quran.rb, line 197 def fuzzy_include?(search_value, regex_format = '%s') inject(false) do |is_found, array_value| is_found or !!(search_value =~ /#{regex_format % array_value}/) end end