Module: JamfRubyExtensions::Array::Predicates
- Included in:
- Array
- Defined in:
- lib/jamf/ruby_extensions/array/predicates.rb
Instance Method Summary collapse
-
#j_ci_include_string?(somestring) ⇒ Boolean
A case-insensitive version of #include? for Arrays of Strings.
Instance Method Details
#j_ci_include_string?(somestring) ⇒ Boolean
A case-insensitive version of #include? for Arrays of Strings.
38 39 40 |
# File 'lib/jamf/ruby_extensions/array/predicates.rb', line 38 def j_ci_include_string?(somestring) any? { |s| s.to_s.casecmp? somestring } end |