Class: Array
- Defined in:
- lib/jamf/ruby_extensions/array.rb
Overview
an array
Instance Method Summary collapse
-
#j_ci_fetch(somestring) ⇒ String?
(also: #jss_ci_fetch_string)
included
from JamfRubyExtensions::Array::Utils
Fetch a string from an Array case-insensitively, e.g.
-
#j_ci_include_string?(somestring) ⇒ Boolean
(also: #jss_ci_include_string?, #j_ci_include?)
included
from JamfRubyExtensions::Array::Predicates
A case-insensitive version of #include? for Arrays of Strings.
Instance Method Details
#j_ci_fetch(somestring) ⇒ String? Also known as: jss_ci_fetch_string Originally defined in module JamfRubyExtensions::Array::Utils
Fetch a string from an Array case-insensitively, e.g. if my_array contains ‘thrasher’,
my_array.j_ci_fetch('ThRashEr')
will return ‘thrasher’
returns nil if no match
#j_ci_include_string?(somestring) ⇒ Boolean Also known as: jss_ci_include_string?, j_ci_include? Originally defined in module JamfRubyExtensions::Array::Predicates
A case-insensitive version of #include? for Arrays of Strings.