lib/jamf/ruby_extensions/array/predicates.rb in ruby-jss-1.6.4 vs lib/jamf/ruby_extensions/array/predicates.rb in ruby-jss-2.0.0a10
- old
+ new
@@ -1,6 +1,6 @@
-# Copyright 2020 Pixar
+# Copyright 2022 Pixar
#
# Licensed under the Apache License, Version 2.0 (the "Apache License")
# with the following modification; you may not use this file except in
# compliance with the Apache License and the following modification to it:
@@ -36,9 +36,11 @@
# @return [Boolean] Does the Array contain the String, ignoring case?
#
def j_ci_include_string?(somestring)
any? { |s| s.to_s.casecmp? somestring }
end
+ alias jss_ci_include_string? j_ci_include_string?
+ alias j_ci_include? j_ci_include_string?
end # module
end # module