Skip to content

Instantly share code, notes, and snippets.

@chuck0523

chuck0523/include.rb

Created Jan 12, 2016
Embed
What would you like to do?
array = [1, 3, 7]
puts array.include? 1 # true
puts array.include? 2 # false
puts array.include? 3 # true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment