module JamfRubyExtensions::Array::Predicates
Public Instance Methods
j_ci_include_string?(somestring)
click to toggle source
A case-insensitive version of include? for Arrays of Strings.
@param somestring [String] the String
to search for
@return [Boolean] Does the Array
contain the String
, ignoring case?
# File lib/jamf/ruby_extensions/array/predicates.rb 38 def j_ci_include_string?(somestring) 39 any? { |s| s.to_s.casecmp? somestring } 40 end
Also aliased as: jss_ci_include_string?, j_ci_include?