So I'm trying to create a method that takes an Array and a letter as arguments and returns a new array of the words that contain that letter.
I have this thus far:
def finder(array, thing_to_find)
find = array.keep_if {|x| x.include?(thing_to_find)==true}
return find
end
When I run the program in Ruby, it's saying the .include? is not a valid block method.
Any suggestions?