Class: MyFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/query.rb

Instance Method Summary collapse

Instance Method Details

#contains(set, str) ⇒ Object



2
3
4
5
# File 'lib/query.rb', line 2

def contains set, str
  set.to_s.downcase.include?str.downcase
  # set.any? { |x| x.to_s.downcase == str.downcase}
end