Method: Async::List#include?

Defined in:
lib/async/list.rb

#include?(needle) ⇒ Boolean

Determine whether the given node is included in the list.

Returns:

  • (Boolean)

187
188
189
190
191
192
193
# File 'lib/async/list.rb', line 187

def include?(needle)
	self.each do |item|
		return true if needle.equal?(item)
	end
	
	return false
end