ary.include?(object) â true or false
Instance Public methods
Returns true
if the given object
is present in
self
(that is, if any element ==
object
), otherwise returns false
.
a = [ "a", "b", "c" ] a.include?("b") #=> true a.include?("z") #=> false
Please login to continue.