I'm sure it's a silly question to those who know, but I can't find an explanation of what it does or what it is.
CSV.open('data.csv', 'r') do |row|
p row
end
What does "p row" do?
I have a value 'Dog' and an array ['Cat', 'Dog', 'Bird'].
How do I check if it exists in the array without looping through it? Is there a simple way of checking if the value exists, nothing more?